w = week(t)
| Parameter | Description |
|---|---|
| inputs | datetime values, serial date numbers, or date-compatible input. |
| Parameter | Description |
|---|---|
| output | A double array of week numbers starting at 1. |
Compute week numbers within the calendar year.
The implementation counts seven-day blocks from January 1 of each year.
Array-valued inputs keep their data shape when the operation supports arrays. Scalar operands are expanded where the implementation defines scalar expansion.
week(datetime(2024, 1, 1))
week(datetime(2024, 1, 8))
| Version | Description |
|---|---|
| 2.0.0 | initial version |