Close
Close window
IsDaylightSavingTime - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

Calendar

IsDaylightSavingTime

determine whether a date is in daylight saving time

Calling Sequence

IsDaylightSavingTime( d )

IsDaylightSavingTime( year, month, day )

IsDaylightSavingTime( year, month, day, timezone = TZ )

Parameters

d

-

Date; the date

year

-

integer; the year

month

-

posint; the month

day

-

posint; the day of the month

TZ

-

string; time zone name

Description

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.

Examples

>

withCalendar:

>

IsDaylightSavingTimeDate

false

(1)
>

dDate2000,6,1,timezone=America/Toronto:

>

IsDaylightSavingTimed

true

(2)
>

dDate2000,6,1,timezone=Canada/Saskatchewan:

>

IsDaylightSavingTimed

false

(3)
>

IsDaylightSavingTime2017,11,5,0,30,timezone=America/Toronto

true

(4)
>

IsDaylightSavingTime2017,11,5,1,timezone=America/Toronto

false

(5)
>

IsDaylightSavingTime1916,4,30,timezone=Europe/Berlin

false

(6)
>

IsDaylightSavingTime1916,5,1,timezone=Europe/Berlin

true

(7)

Compatibility

The Calendar[IsDaylightSavingTime] command was introduced in Maple 2018.

For more information on Maple 2018 changes, see Updates in Maple 2018 .

See Also


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /