tf = isdst(t)
| Parameter | Description |
|---|---|
| inputs | A datetime array with a TimeZone property. |
| Parameter | Description |
|---|---|
| output | A logical array. |
Test whether timezone-aware datetime values are in daylight saving time.
isdst uses the embedded timezone rules for named zones. Fixed offsets do not have daylight saving transitions.
Array-valued inputs keep their data shape when the operation supports arrays. Scalar operands are expanded where the implementation defines scalar expansion.
isdst(datetime(2024, 1, 1, 'TimeZone', 'Europe/Paris'))
isdst(datetime(2024, 7, 1, 'TimeZone', 'Europe/Paris'))
| Version | Description |
|---|---|
| 2.0.0 | initial version |