Re: Separate shifts within date time variable
Posted by
Art Kendall on
URL: http://spssx-discussion.165.s1.nabble.com/Separate-shifts-within-date-time-variable-tp5740995p5740998.html
untested
compute MyHour = xdate.hour(MyDateTimeVar).
recode MyHour (missing,sysmis =-1) (11 to 23=1)(else=2) into shift.
value labels shift . . .
Art Kendall
Social Research Consultants