13-Apr-2019 03:00:00 13-Apr-2019 04:00:00 13-Apr-2019 05:00:00
Columns 4 through 5
13-Apr-2019 06:00:00 13-Apr-2019 07:00:00
Previous Occurrences of Dates and Time
Generate a sequence of datetime values beginning with the previous hour. Negative
integers in the last input to dateshift correspond to datetime values earlier than t1.
t = dateshift(t1,'start','hour',-1:1)
t = 1x3 datetime array
13-Apr-2019 02:00:00 13-Apr-2019 03:00:00 13-Apr-2019 04:00:00
See Also
dateshift | linspace
7 Dates and Time