caldays
Calendar duration in days
Syntax
D = caldays(X)
Description
D = caldays(
returns an array representing calendar days equivalent to the values in arrayX
)X
.
If
X
is a numeric array, thenD
is acalendarDuration
array with each element equal to the number of calendar days in the corresponding element ofX
. Calendar days account for Daylight Saving Time shifts when used in calendar calculations.If
X
is acalendarDuration
array, thenD
is adouble
array with each element equal to the number of whole calendar days in the corresponding element ofX
.
Examples
Input Arguments
Tips
caldays
creates days that account for Daylight Saving Time shifts when used in calendar calculations. To create exact fixed-length (24 hour) days, use thedays
function.
Extended Capabilities
See Also
Introduced in R2014b
Was this topic helpful?