Calendar
IsDaylightSavingTime
determine whether a date is in daylight saving time
Calling Sequence
Parameters
Description
Examples
Compatibility
IsDaylightSavingTime( d )
IsDaylightSavingTime( year, month, day )
IsDaylightSavingTime( year, month, day, timezone = TZ )
d
-
Date; the date
year
integer; the year
month
posint; the month
day
posint; the day of the month
TZ
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.
with⁡Calendar:
IsDaylightSavingTime⁡Date⁡
false
d≔Date⁡2000,6,1,timezone=America/Toronto:
IsDaylightSavingTime⁡d
true
d≔Date⁡2000,6,1,timezone=Canada/Saskatchewan:
IsDaylightSavingTime⁡2017,11,5,0,30,timezone=America/Toronto
IsDaylightSavingTime⁡2017,11,5,1,timezone=America/Toronto
IsDaylightSavingTime⁡1916,4,30,timezone=Europe/Berlin
IsDaylightSavingTime⁡1916,5,1,timezone=Europe/Berlin
The Calendar[IsDaylightSavingTime] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
Date
Download Help Document