Shift date or generate sequence of dates and time
t2 = dateshift(
shifts the values ahead to the end of the unit of time specified by t
,'end',unit
)unit
.
The end of a day, hour, minute, or second is also the beginning of
the next one. For example, the end of a day occurs at midnight at
the beginning of the next day. The end of a year, quarter, month,
or week is midnight at the beginning of the last day of that time
period.