tf = isweekend(t)
| Parameter | Description |
|---|---|
| inputs | datetime values, serial date numbers, or date-compatible input. |
| Parameter | Description |
|---|---|
| output | A logical array. |
Test whether date values fall on Saturday or Sunday.
isweekend uses weekday numbering where Sunday and Saturday are weekend days.
Array-valued inputs keep their data shape when the operation supports arrays. Scalar operands are expanded where the implementation defines scalar expansion.
isweekend(datetime(2024, 6, 8))
isweekend(datetime(2024, 6, 10))
| Version | Description |
|---|---|
| 2.0.0 | initial version |