Documentation

Std.Time.Zoned.TimeZone

A TimeZone structure that stores the timezone offset, the name, abbreviation and if it's in daylight saving time.

Instances For
Equations

A zeroed Timezone representing UTC (no offset).

Equations

A zeroed Timezone representing GMT (no offset).

Equations

Creates a Timestamp from a given number of hour.

Equations

Creates a Timestamp from a given number of second.

Equations
  • Std.Time.TimeZone.ofSeconds name abbreviation n isDST = { offset := { second := n }, name := name, abbreviation := abbreviation, isDST := isDST }

Gets the number of seconds in a timezone offset.

Equations
  • tz.toSeconds = tz.offset.second