justinmimbs/timezone-data/1.0.0

NOTE: the latest version is 11.1.2

TimeZone.Data

This module contains data from the 2018e release of the IANA Time Zone Database.

type alias Pack =
Pack

Represents information required to create a Time.Zone. A Pack must be converted to a Time.Zone with the TimeZone.unpack function.

packs : Dict String Pack

You can look up a Pack by its zone name in the packs dictionary.

import Dict
import TimeZone.Data exposing (packs, america__new_york)


Dict.get "America/New_York" packs


-- Just america__new_york

Zones

Data for each zone is contained in a Pack named after its zone name (e.g. America/New_York), where slashes are replaced by __, dashes are replaced by _, and the name is lowercased. For example, America/Port-au-Prince becomes america__port_au_prince.

asia__aden : Pack
asia__baku : Pack
asia__dili : Pack
asia__gaza : Pack
asia__hovd : Pack
asia__omsk : Pack
asia__oral : Pack

Metadata

version : String

What version of the IANA Time Zone Database is this data from?

minYear : Year

How far back does this data go?

maxYear : Year

How far forward does it go?