Re: Separate shifts within date time variable

Posted by Rich Ulrich on
URL: http://spssx-discussion.165.s1.nabble.com/Separate-shifts-within-date-time-variable-tp5740995p5740997.html

That looks close, but as I read it, the logic is off - I read this as
  shift=  (time lt 11) AND (time gt 23).    Which is always false.

Testing the 11-23 range, and keeping the assignments of 1 and 2, I get (now using ge and le)
  shift= 2 - (time ge 11) AND (time le 23).

Rich Ulrich