Calendar duration in years
returns
an array representing calendar years equivalent to the values in Y
= calyears(X
)X
.
Calendar years account for leap days when used in calendar calculations.
If X
is a numeric array, then Y
is
a calendarDuration
array with each element equal
to the number of calendar years in the corresponding element of X
.
If X
is a calendarDuration
array,
then calyears
returns the number of whole years
equivalent to each calendar duration in X
.
calyears
creates years that account
for leap days when used in calendar calculations. To create exact
fixed-length (365.2425 day) years, use the years
function.