c = calweeks(x)
| Parameter | Description |
|---|---|
| inputs | Numeric week counts. |
| Parameter | Description |
|---|---|
| output | A calendarDuration array with week counts stored as seven calendar days. |
Create calendar durations containing whole weeks.
calweeks stores weeks in the day component of calendarDuration. It is useful for date arithmetic that should remain in calendar-duration form.
Array-valued inputs keep their data shape when the operation supports arrays. Scalar operands are expanded where the implementation defines scalar expansion.
datetime(2024, 1, 1) + calweeks(2)
| Version | Description |
|---|---|
| 2.0.0 | initial version |