Safe Haskell | None |
---|---|
Language | Haskell2010 |
Location and time zone constructors and functions.
- data City
- = Aden
- | Amman
- | Anchorage
- | Auckland
- | Baghdad
- | Berlin
- | Brussels
- | Bujumbura
- | Cairo
- | Chicago
- | Damascus
- | Denver
- | Doha
- | Gaborone
- | Hong_Kong
- | Honolulu
- | Johannesburg
- | Kabul
- | Karachi
- | Kinshasa
- | Kolkata
- | Kuwait_City
- | London
- | Los_Angeles
- | Luanda
- | Manama
- | Minsk
- | Mogadishu
- | Moscow
- | New_York
- | Oslo
- | Ouagadougou
- | Paris
- | Pyongyang
- | Riyadh
- | Sao_Paulo
- | Sarajevo
- | Seoul
- | Shanghai
- | Singapore
- | Sofia
- | Stockholm
- | Tehran
- | Tel_Aviv
- | Tirana
- | Tokyo
- | Toronto
- | Universal
- | Vienna
- | Zurich
- cities :: [City]
- getOlsonFile :: City -> FilePath
- olsonFiles :: Map City FilePath
- data TimeZone
- = Afghanistan_Time
- | Alaska_Daylight_Time
- | Alaska_Hawaii_Daylight_Time
- | Alaska_Hawaii_Standard_Time
- | Alaska_Standard_Time
- | Arabia_Daylight_Time
- | Arabia_Standard_Time
- | Brasilia_Summer_Time
- | Brasilia_Time
- | British_Summer_Time
- | Central_Africa_Time
- | Central_Daylight_Time
- | Central_European_Summer_Time
- | Central_European_Time
- | Central_Standard_Time
- | China_Daylight_Time
- | China_Standard_Time
- | Coordinated_Universal_Time
- | East_Africa_Time
- | Eastern_Daylight_Time
- | Eastern_European_Summer_Time
- | Eastern_European_Time
- | Eastern_Standard_Time
- | Further_Eastern_European_Time
- | Greenwich_Mean_Time
- | Gulf_Standard_Time
- | Hawaii_Aleutian_Standard_Time
- | Hong_Kong_Summer_Time
- | Hong_Kong_Time
- | India_Standard_Time
- | Iran_Daylight_Time
- | Iran_Standard_Time
- | Israel_Daylight_Time
- | Israel_Standard_Time
- | Japan_Standard_Time
- | Karachi_Time
- | Korea_Daylight_Time
- | Korea_Standard_Time
- | Moscow_Daylight_Time
- | Moscow_Standard_Time
- | Mountain_Daylight_Time
- | Mountain_Standard_Time
- | New_Zealand_Daylight_Time
- | New_Zealand_Standard_Time
- | Pacific_Daylight_Time
- | Pacific_Standard_Time
- | Pakistan_Standard_Time
- | Pakistan_Summer_Time
- | Singapore_Time
- | South_Africa_Standard_Time
- | West_Africa_Time
- | Yukon_Standard_Time
- utc :: TimeZone
- getUTCOffset :: Num a => TimeZone -> a
- utcOffsets :: Num a => Map TimeZone a
- data TimeZoneAbbr = TimeZoneAbbr {}
- abbreviate :: TimeZone -> TimeZoneAbbr
- unabbreviate :: TimeZoneAbbr -> TimeZone
- abbreviations :: Map TimeZone TimeZoneAbbr
Locations
Cities from around the world.
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 |
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
Time zones from around the world.
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
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.