Create calendar duration array from numeric values
The calendarDuration function creates
an array that represents elapsed time in calendar units of variable
length. For example, the number of days in 1 month depend on the particular
month of the year. Calculations with calendar durations account for
daylight saving time changes and leap years.
also
includes the hours, minutes, and seconds specified by L = calendarDuration(Y,M,D,H,MI,S)H, MI,
and S, respectively. Alternatively, you can specify
the input arguments as a matrix with six columns, [Y,M,D,H,MI,S].
additionally
specifies the format in which L = calendarDuration(___,'Format',displayFormat)L displays, using
any of the input arguments from the previous syntaxes.