Skip to main content

Module timezone

Module timezone 

Source
Expand description

upstream timezone.ts: time zone abbreviations and toTimezoneOffset.

Enums§

TimezoneInput
upstream ParsingReference.timezone: an abbreviation or an offset in minutes.
TimezoneSpec
upstream number | AmbiguousTimezoneMap.

Statics§

TIMEZONE_ABBR_MAP
upstream TIMEZONE_ABBR_MAP (case-sensitive keys, like upstream).

Functions§

get_last_weekday_of_month
getLastWeekdayOfMonth(year, month, weekday, hour); month is 1–12.
get_nth_weekday_of_month
getNthWeekdayOfMonth(year, month, weekday, n, hour); month is 1–12.
lookup
to_timezone_offset
toTimezoneOffset(timezoneInput, date, timezoneOverrides).

Type Aliases§

DstRule
A DST boundary for a year (upstream dstStart / dstEnd).
TimezoneAbbrMap
upstream TimezoneAbbrMap (used for ParsingOption.timezones overrides).