FUNCTION REFERENCE
datevec
Date vector.
Date vector.
Syntax
V = datevec(D)Syntax
V = datevec(text, format)Syntax
[Y, M, D, H, MI, S] = datevec(...)Returns one row [year month day hour minute second] per date: per element of a
serial-number array (column-major order) or per row of date text. Text without
a format is read as by datenum. With several outputs each output is a column of
the matrix. Seconds are rounded to the millisecond.
Example
datevec(736390.5) % 2016 3 1 12 0 0Example
[y, m, d] = datevec('2016-03-01', 'yyyy-mm-dd') % y = 2016, m = 3, d = 1Differences from MATLAB: The millisecond rounding of the seconds
was not checked against MATLAB.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.