calweeks
Calendar duration in weeks
Syntax
Description
The calweeks function returns an array that represents
            calendar weeks. When you use arrays that have the calendarDuration
            data type in calendar calculations, the calculations take into account leap years,
            Daylight Saving Time shifts, and the differing lengths of calendar months. For
            calculations that involve fixed lengths of time, use the duration data type.
W = calweeks(X)X.
- If - Xis a numeric array, then- Wis a- calendarDurationarray with each element equal to the number of calendar weeks in the corresponding element of- X.
- If - Xis a- calendarDurationarray, then- calweeksreturns the number of whole weeks equivalent to each calendar duration in- X.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2014b