Represents the type of local time in relation to UTC.
- ut : Std.Time.TimeZone.UTLocal
Universal Time (UT), often referred to as UTC.
- local : Std.Time.TimeZone.UTLocal
Local time that is not necessarily UTC.
Instances For
Equations
- Std.Time.TimeZone.instReprUTLocal = { reprPrec := Std.Time.TimeZone.reprUTLocal✝ }
Equations
- Std.Time.TimeZone.instInhabitedUTLocal = { default := Std.Time.TimeZone.UTLocal.ut }
Represents types of wall clocks or standard times.
- wall : Std.Time.TimeZone.StdWall
Time based on a wall clock, which can include daylight saving adjustments.
- standard : Std.Time.TimeZone.StdWall
Standard time without adjustments for daylight saving.
Instances For
Equations
- Std.Time.TimeZone.instReprStdWall = { reprPrec := Std.Time.TimeZone.reprStdWall✝ }
Equations
Represents a type of local time, including offset and daylight saving information.
- gmtOffset : Std.Time.TimeZone.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 : Std.Time.TimeZone.StdWall
Indicates if the time is wall clock or standard time.
- utLocal : Std.Time.TimeZone.UTLocal
Distinguishes between universal time and local time.
- identifier : String
ID of the timezone
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Gets the TimeZone offset from a LocalTimeType.
Equations
- time.getTimeZone = { offset := time.gmtOffset, name := time.identifier, abbreviation := time.abbreviation, isDST := time.isDst }
Instances For
Represents a time zone transition, mapping a time to a local time type.
- time : Std.Time.Second.Offset
The specific time of the transition event.
- localTimeType : Std.Time.TimeZone.LocalTimeType
The local time type associated with this transition.
Instances For
Equations
- Std.Time.TimeZone.instReprTransition = { reprPrec := Std.Time.TimeZone.reprTransition✝ }
Equations
- Std.Time.TimeZone.instInhabitedTransition = { default := { time := default, localTimeType := default } }
Represents the rules for a time zone.
- initialLocalTimeType : Std.Time.TimeZone.LocalTimeType
The first
LocalTimeTypeused as a fallback when no matching transition is found. - transitions : Array Std.Time.TimeZone.Transition
The array of transitions for the time zone.
Instances For
Equations
- Std.Time.TimeZone.instReprZoneRules = { reprPrec := Std.Time.TimeZone.reprZoneRules✝ }
Equations
- Std.Time.TimeZone.instInhabitedZoneRules = { default := { initialLocalTimeType := default, transitions := default } }
Create a TimeZone from a Transition.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Applies the transition to a Timestamp.
Equations
- One or more equations did not get rendered due to their size.
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
- One or more equations did not get rendered due to their size.
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
- One or more equations did not get rendered due to their size.
Instances For
Find the current TimeZone out of a Transition in a Array Transition
Equations
- One or more equations did not get rendered due to their size.
Instances For
Creates ZoneRules with a fixed GMT offset.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Creates ZoneRules with a fixed offset of UTC (GMT+0).
Equations
- Std.Time.TimeZone.ZoneRules.UTC = Std.Time.TimeZone.ZoneRules.fixedOffsetZone 0 (some "UTC") (some "UTC")
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.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Find the current TimeZone out of a Transition in a ZoneRules
Equations
- zr.timezoneAt tm = (Std.Time.TimeZone.Transition.timezoneAt zr.transitions tm).toOption.getD zr.initialLocalTimeType.getTimeZone
Instances For
Creates ZoneRules for the given TimeZone.
Equations
- One or more equations did not get rendered due to their size.