Represents a timezone offset with an hour and second component.
- ofSeconds :: (
- second : Std.Time.Second.Offset
The same timezone offset in seconds.
- )
Instances For
Equations
- Std.Time.TimeZone.instBEqOffset = { beq := fun (x y : Std.Time.TimeZone.Offset) => x.second == y.second }
Converts an Offset
to a string in ISO 8601 format. The colon
parameter determines if the hour
and minute components are separated by a colon (e.g., "+01:00" or "+0100").
Equations
- One or more equations did not get rendered due to their size.
Instances For
A zero Offset
representing UTC (no offset).
Instances For
Creates an Offset
from a given number of hour.
Instances For
def
Std.Time.TimeZone.Offset.ofHoursAndMinutes
(n : Std.Time.Hour.Offset)
(m : Std.Time.Minute.Offset)
:
Creates an Offset
from a given number of hours and minutes.
Equations
- Std.Time.TimeZone.Offset.ofHoursAndMinutes n m = { second := n.toSeconds + m.toSeconds }