datetime.size
datetime: sz = size (T)
datetime: dim_sz = size (T, dim)
datetime: dim_sz = size (T, d1, d2, …)
datetime: [rows, columns, …, dim_n_sz] = size (…)
Size of a datetime array.
sz = size (T) returns a row vector with the size
(number of elements) of each dimension for the datetime array T.
dim_sz = size (T, dim) returns the size of
the corresponding dimension specified in dim. If dim is a
vector, then dim_sz is a vector of the same length and with each
element corresponding to a specified dimension. Multiple dimensions may
also be specified as separate arguments.
With a single output argument, size returns a row vector. When
called with multiple output arguments, size returns the size of
dimension N in the Nth argument.
Source Code: datetime