A timezone database from which we can read the ZoneRules
of some area by it's id.
- getZoneRules : α → String → IO Std.Time.TimeZone.ZoneRules
Retrieves the zone rules information (
ZoneRules
) for a given area at a specific point in time. - getLocalZoneRules : α → IO Std.Time.TimeZone.ZoneRules
Retrieves the local zone rules information (
ZoneRules
) at a given timestamp.
Instances
Converts a Boolean value to a corresponding StdWall
type.
Equations
Instances For
Converts a Boolean value to a corresponding UTLocal
type.
Equations
Instances For
def
Std.Time.TimeZone.convertLocalTimeType
(index : Nat)
(tz : Std.Time.TimeZone.TZif.TZifV1)
(identifier : String)
:
Converts a given time index into a LocalTimeType
by using a time zone (tz
) and its identifier.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Std.Time.TimeZone.convertTransition
(times : Array Std.Time.TimeZone.LocalTimeType)
(index : Nat)
(tz : Std.Time.TimeZone.TZif.TZifV1)
:
Converts a transition.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Converts a TZif.TZifV1
structure to a ZoneRules
structure.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Converts a TZif.TZifV2
structure to a ZoneRules
structure.
Equations
- Std.Time.TimeZone.convertTZifV2 tz id = Std.Time.TimeZone.convertTZifV1 tz.toTZifV1 id
Instances For
Converts a TZif.TZif
structure to a ZoneRules
structure.
Equations
- Std.Time.TimeZone.convertTZif tz id = match tz.v2 with | some v2 => Std.Time.TimeZone.convertTZifV2 v2 id | x => Std.Time.TimeZone.convertTZifV1 tz.v1 id