Represents a type of local time, including offset and daylight saving information.
- gmtOffset : Offset
The offset from GMT for this local time.
- isDst : Bool
Indicates if daylight saving time is observed.
- abbreviation : String
The abbreviation for this local time type (e.g., "EST", "PDT").
- wall : StdWall
Indicates if the time is wall clock or standard time.
- utLocal : UTLocal
Distinguishes between universal time and local time.
- identifier : String
ID of the timezone
Instances For
Represents a time zone transition, mapping a time to a local time type.
- time : Second.Offset
The specific time of the transition event.
- localTimeType : LocalTimeType
The local time type associated with this transition.
Instances For
Represents the rules for a time zone.
- initialLocalTimeType : LocalTimeType
The first
LocalTimeType
used as a fallback when no matching transition is found. - transitions : Array Transition
The array of transitions for the time zone.
Instances For
Create a TimeZone from a Transition.
Equations
Instances For
Applies the transition to a Timestamp.
Equations
Instances For
Finds the transition corresponding to a given timestamp in Array Transition
.
If the timestamp falls between two transitions, it returns the most recent transition before the timestamp.
Equations
Instances For
Finds the transition corresponding to a given timestamp in Array Transition
.
If the timestamp falls between two transitions, it returns the most recent transition before the timestamp.
Equations
Instances For
Find the current TimeZone
out of a Transition
in a Array Transition
Equations
Instances For
Creates ZoneRules with a fixed GMT offset.
Equations
Instances For
Creates ZoneRules with a fixed offset of UTC (GMT+0).
Equations
Instances For
Finds the LocalTimeType
corresponding to a given Timestamp
in ZoneRules
.
If the timestamp falls between two transitions, it returns the most recent transition before the timestamp.
If no transition is found, it falls back to initialLocalTimeType
.