Types for recurring DST transition rules, used by ZoneRules and produced by POSIX TZ parsing.
Specifies how a DST transition date is expressed.
- mwd
(month : Month.Ordinal)
(week : Week.Aligned.Ordinal)
(day : Weekday.Ordinal)
: TransitionSpec
Mm.w.dform: monthm, weekw(1–5; 5 = last), ISO weekdayd. - julian
(day : Internal.Bounded.LE 1 365)
: TransitionSpec
Jnform: Julian day 1–365 (Feb 29 never counted, even in leap years). - julian0
(day : Internal.Bounded.LE 0 365)
: TransitionSpec
nform: zero-based day 0–365 (Feb 29 counted in leap years).
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Returns the Day.Offset (days since epoch) for a TransitionSpec.mwd in the given year.
Mm.w.d: month m, week w (1–5; 5 = last), ISO weekday d (1 = Monday, 7 = Sunday).
Finds the w-th occurrence of weekday d in month m; if w = 5, returns the last occurrence.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Returns the Day.Offset (days since epoch) for a TransitionSpec.julian in the given year.
Jn: Julian day 1–365. Feb 29 is never counted, so in a leap year days ≥ 60 are shifted by one.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Returns the Day.Offset (days since epoch) for a TransitionSpec.julian0 in the given year.
n: zero-based day 0–365. Feb 29 is counted normally in leap years.
Equations
Instances For
Returns the Day.Offset (days since epoch) for this TransitionSpec in the given year.
Equations
- (Std.Time.TimeZone.TransitionSpec.mwd a a_1 a_2).toEpochDay year = Std.Time.TimeZone.TransitionSpec.toEpochDayMWD year a a_1 a_2
- (Std.Time.TimeZone.TransitionSpec.julian a).toEpochDay year = Std.Time.TimeZone.TransitionSpec.toEpochDayJulian year a
- (Std.Time.TimeZone.TransitionSpec.julian0 a).toEpochDay year = Std.Time.TimeZone.TransitionSpec.toEpochDayJulian0 year a
Instances For
A single DST transition rule: a date specification and a wall-clock time.
- spec : TransitionSpec
How the transition date is specified.
- time : Second.Offset
Time of day as seconds from midnight (default 7200 = 02:00).
"The time has the same format as offset except that no leading sign ( '-' or '+' ) is allowed. The default, if time is not given, shall be 02:00:00." $8.3 https://pubs.opengroup.org/onlinepubs/9699919799/
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Recurring DST details for a zone that observes daylight saving time.
- name : String
DST abbreviation.
- offset : Offset
DST UTC offset (east-positive).
- start : Option TransitionRule
Rule for the start of DST, if any.
- end_ : Option TransitionRule
Rule for the end of DST, if any.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Recurring rule describing standard and DST zones, as found in a POSIX TZ string or TZif footer.
- stdName : String
Standard time abbreviation.
- stdOffset : Offset
Standard UTC offset (east-positive).
- dst : Option DaylightSavingRule
DST details, if this zone observes DST.
Instances For
Equations
- One or more equations did not get rendered due to their size.