time-exts-1.1.2: Efficient Timestamps

Safe HaskellNone
LanguageHaskell2010

Data.Time.Exts.Zone

Contents

Description

Location and time zone constructors and functions.

Synopsis

Locations

data City Source

Cities from around the world.

Constructors

Aden

Yemeni Republic

Amman

Hashemite Kingdom of Jordan

Anchorage

United States of America

Auckland

New Zealand

Baghdad

Republic of Iraq

Berlin

Federal Republic of Germany

Brussels

Kingdom of Belgium

Bujumbura

Republic of Burundi

Cairo

Arab Republic of Egypt

Chicago

United States of America

Damascus

Syrian Arab Republic

Denver

United States of America

Doha

State of Qatar

Gaborone

Republic of Botswana

Hong_Kong

People's Republic of China

Honolulu

United States of America

Johannesburg

Republic of South Africa

Kabul

Islamic Republic of Afghanistan

Karachi

Islamic Republic of Pakistan

Kinshasa

Democratic Republic of the Congo

Kolkata

Republic of India

Kuwait_City

State of Kuwait

London

United Kingdom of Great Britain and Northern Ireland

Los_Angeles

United States of America

Luanda

Republic of Angola

Manama

Kingdom of Bahrain

Minsk

Republic of Belarus

Mogadishu

Federal Republic of Somalia

Moscow

Russian Federation

New_York

United States of America

Oslo

Kingdom of Norway

Ouagadougou

Burkina Faso

Paris

French Republic

Pyongyang

Democratic People's Republic of Korea

Riyadh

Kingdom of Saudi Arabia

Sao_Paulo

Federative Republic of Brazil

Sarajevo

Bosnia and Herzegovina

Seoul

Republic of Korea

Shanghai

People's Republic of China

Singapore

Republic of Singapore

Sofia

Republic of Bulgaria

Stockholm

Kingdom of Sweden

Tehran

Islamic Republic of Iran

Tel_Aviv

State of Israel

Tirana

Republic of Albania

Tokyo

Japan

Toronto

Canada

Universal

International Territory

Vienna

Republic of Austria

Zurich

Swiss Confederation

cities :: [City] Source

A list of cities in alphabetical order.

Olson Database

getOlsonFile :: City -> FilePath Source

Get the Olson file associated with the given city.

olsonFiles :: Map City FilePath Source

A map from cities to Olson file paths.

Time Zones

utc :: TimeZone Source

The UTC time zone.

getUTCOffset :: Num a => TimeZone -> a Source

Get the UTC offset (in minutes) for the given time zone.

utcOffsets :: Num a => Map TimeZone a Source

A map from time zones to UTC offsets (in minutes).

Abbreviations

data TimeZoneAbbr Source

A time zone abbreviation.

Constructors

TimeZoneAbbr 

Fields

abbr_city :: City

reference location

abbr_str :: String

time zone abbreviation string

abbreviate :: TimeZone -> TimeZoneAbbr Source

Abbreviate a time zone.

unabbreviate :: TimeZoneAbbr -> TimeZone Source

Unabbreviate a time zone.

abbreviations :: Map TimeZone TimeZoneAbbr Source

A map from time zones to time zone abbreviations.