Time.Posix

lib/Time/Posix.gob

POSIX time zone rules, the TZ form: EST5EDT,M3.2.0,M11.1.0 is five hours west of UTC, and an hour less from 02:00 on the second Sunday of March to 02:00 on the first Sunday of November. A TZif file ends with one of these, which gives every transition after its table runs out; files written in the default "slim" form rely on it for every year with a recurring rule.

The text writes an offset as hours west of UTC, the opposite of the sign an Offset has. The extensions TZif version 3 allows are read: a transition time from -167 to 167 hours, so that a rule can fall on the day before or after.

type Rule
fun parse : fun(String) -> Option Rule
fun transitions : fun(Rule, Int) -> Array Transition

The transitions in year, in order.

fun offsetAt : fun(Rule, UnixSeconds) -> Offset

The offset in force at t.