leapseconds-1.0

Data.Time.Clock.LeapSeconds

Description

Interpretation of leap second files.

Synopsis

Documentation

type LeapSecondMap = Day -> Maybe Int #

TAI - UTC during this day. No table is provided, as any program compiled with it would become out of date in six months.

A list of leap-second transitions, etc.

Constructors

 MkLeapSecondList FieldslslVersion :: Day lslExpiration :: Day lslTransitions :: [(Day, Int)]

Instances

 Source # Methods

Parse the text of a NIST leap-second file. This file can be found at ftp://time.nist.gov/pub/leap-seconds.list, and on UNIX systems, at /usr/share/zoneinfo/leap-seconds.list.

Obtain a map that can be used to convert between TAI and UTC (see Data.Time.Clock.TAI)