determine whether a date is in daylight saving time
IsDaylightSavingTime( d )
IsDaylightSavingTime( year, month, day )
IsDaylightSavingTime( year, month, day, timezone = TZ )
Date; the date
integer; the year
posint; the month
posint; the day of the month
string; time zone name
The IsDaylightSavingTime( d ) command determines whether the Date object d is in daylight saving time.
The IsDaylightSavingTime( y, m, d, 'timezone' = TZ ) command determines whether the date indicated by the given year y, month m and day d, in the specified time zone TZ is on daylight saving time.
Note that the result of this command is expected to be accurate only for dates after the year 1970, as historical information on daylight saving time transitions prior to that year are incomplete. For example, DST was first observed in Thunder Bay (then, Port Arthur) on 1908-08-01, but this information is not represented in the time zone database.
Furthermore, the time zone data upon which this command is based is only current as of the date of the time zone database used at release, but which is normally revised several times per year.
d ≔ Date⁡2000,6,1,timezone=America/Toronto:
d ≔ Date⁡2000,6,1,timezone=Canada/Saskatchewan:
The Calendar[IsDaylightSavingTime] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
Download Help Document