Calendar or time components, specified as one of the following
character vectors, or a cell array containing one or more of these
character vectors:
'years'
'quarters'
'months'
'weeks'
'days'
'time'
Except for 'time'
, the above components are
flexible lengths of time. For example, 1 month represents a different
length of time when added to a datetime in January than when added
to a datetime in February.
between
operates on the calendar or time
components in decreasing order, starting with the largest component.
In general, t2
is not equal to t1
+ dt
, unless you include 'time'
in components
.
Example: {'years','quarters'}
Data Types: char
| cell