2014年10月21日 星期二

Timezone category.

Because of something, I make a comparison table between "GMT" and the areas in it.
* Not all, but I think it's sufficient.
* This is in Python dict format.
* I discard something like ".5" or ".8" and put those areas in the nearest ".0", such as "Caracas", "St_Johns" and so on.

timezone_list = {
    '-12': [],
    '-11': ['US/Samoa', 'Pacific/Midway', 'Pacific/Niue', 'Pacific/Pago_Pago', 'Pacific/Samoa', ],
    '-10': ['US/Aleutian', 'US/Hawaii', 'HST', 'Pacific/Honolulu', 'Pacific/Johnston', 'Pacific/Rarotonga', 'Pacific/Tahiti', ],
    '-9' : ['US/Alaska', 'America/Adak', 'America/Atka', 'America/Juneau', 'America/Nome', 'America/Yakutat', 'Pacific/Gambier', 'Pacific/Marquesas', ],
    '-8' : ['America/Anchorage', 'America/Dawson', 'America/Los_Angeles', 'America/Tijuana', 'America/Vancouver', 'America/Whitehorse', 'Pacific/Pitcairn', ],
    '-7' : ['US/Arizona', 'US/Mountain', 'US/Pacific', 'America/Dawson_Creek', 'America/Ensenada', 'America/Hermosillo', 'America/Inuvik', 'America/Mazatlan', 'America/Phoenix', 'America/Shiprock', 'America/Yellowknife', 'Canada/Pacific', 'Canada/Yukon', 'PST8PDT', 'Mexico/BajaNorte', ],
    '-6' : ['America/Belize', 'America/Boise', 'America/Cambridge_Bay', 'America/Chihuahua', 'America/Costa_Rica', 'America/Denver', 'America/Edmonton', 'America/El_Salvador', 'America/Guatemala', 'America/Indiana/Knox', 'America/Managua', 'US/Indiana-Starke', 'America/Menominee', 'America/Merida', 'America/Mexico_City',  'America/Monterrey', 'America/Rainy_River', 'America/Rankin_Inlet', 'America/Regina', 'America/Swift_Current', 'America/Tegucigalpa', 'America/Winnipeg', 'Canada/East-Saskatchewan', 'Canada/Mountain', 'Canada/Saskatchewan', 'MST', 'MST7MDT', 'Mexico/BajaSur', 'Pacific/Galapagos', 'US/Navajo', ],
    '-5' : ['US/Central', 'US/Eastern', 'US/Michigan', 'America/Bogota', 'America/Cancun', 'America/Cayman', 'America/Chicago', 'America/Eirunepe', 'America/Grand_Turk', 'America/Guayaquil', 'America/Havana', 'America/Indiana/Indianapolis', 'America/Indiana/Marengo', 'America/Indiana/Vevay', 'America/Iqaluit', 'America/Jamaica', 'America/Kentucky/Louisville', 'America/Kentucky/Monticello', 'America/Knox_IN', 'America/Lima', 'America/Montreal', 'America/Nassau', 'America/New_York', 'America/Nipigon', 'America/Panama', 'America/Pangnirtung', 'America/Port-au-Prince', 'America/Porto_Acre', 'America/Thunder_Bay', 'Brazil/Acre', 'CST6CDT', 'Canada/Central', 'Chile/EasterIsland', 'Mexico/General', 'Pacific/Easter', ],
    '-4' : ['US/East-Indiana', 'America/Anguilla', 'America/Antigua', 'America/Aruba', 'America/Barbados', 'America/Boa_Vista', 'America/Caracas', 'America/Curacao', 'America/Detroit', 'America/Dominica',  'America/Fort_Wayne', 'America/Goose_Bay', 'America/Grenada', 'America/Guadeloupe', 'America/Guyana', 'America/Halifax', 'America/Indianapolis', 'America/La_Paz', 'America/Louisville', 'America/Manaus', 'America/Martinique', 'America/Montserrat', 'America/Port_of_Spain', 'America/Porto_Velho', 'America/Puerto_Rico', 'America/Santiago', 'America/Santo_Domingo', 'America/St_Kitts', 'America/St_Lucia', 'America/St_Thomas', 'America/St_Vincent', 'America/Thule', 'America/Tortola', 'America/Virgin', 'Antarctica/Palmer', 'Brazil/West', 'Canada/Eastern', 'Cuba', 'EST', 'EST5EDT', ],
    '-3' : ['America/Araguaina', 'America/Asuncion', 'America/Belem', 'America/Buenos_Aires', 'America/Catamarca', 'America/Cayenne', 'America/Cordoba', 'America/Cuiaba', 'America/Fortaleza', 'America/Glace_Bay', 'America/Godthab', 'America/Jujuy', 'America/Maceio', 'America/Mendoza', 'America/Miquelon', 'America/Montevideo', 'America/Paramaribo', 'America/Recife', 'America/Rosario', 'America/Sao_Paulo', 'America/St_Johns', 'Atlantic/Bermuda', 'Atlantic/Stanley', 'Canada/Atlantic', 'Chile/Continental', ],
    '-2' : ['America/Noronha', 'Atlantic/South_Georgia', 'Brazil/DeNoronha', 'Brazil/East', 'Canada/Newfoundland', ],
    '-1' : ['America/Scoresbysund', 'Atlantic/Cape_Verde', ],
    '+0' : ['Africa/Abidjan', 'Africa/Accra', 'Africa/Bamako', 'Africa/Bissau', 'Africa/Conakry', 'Africa/Dakar', 'Africa/Freetown', 'Africa/Lome', 'Africa/Nouakchott', 'Africa/Banjul', 'Africa/Monrovia', 'Africa/Ouagadougou', 'Africa/Sao_Tome', 'Africa/Timbuktu', 'Atlantic/Azores', 'Atlantic/Reykjavik', 'Atlantic/St_Helena', 'GMT', 'Greenwich', 'Iceland', 'UCT', 'UTC', 'Universal', 'Zulu',  ],
    '+1' : ['Africa/Algiers', 'Africa/Bangui', 'Africa/Brazzaville', 'Africa/Casablanca', 'Africa/Douala', 'Africa/Kinshasa', 'Africa/Lagos', 'Africa/Libreville', 'Africa/Luanda', 'Africa/Ndjamena', 'Africa/Niamey', 'Africa/Porto-Novo', 'Africa/Tunis', 'Africa/El_Aaiun', 'Africa/Malabo', 'Arctic/Longyearbyen', 'Atlantic/Canary', 'Atlantic/Faeroe', 'Atlantic/Madeira', 'Eire', 'GB', 'GB-Eire', 'Portugal', 'Europe/Belfast', 'Europe/Dublin', 'Europe/Lisbon', 'Europe/London', ],
    '+2' : ['Africa/Bujumbura', 'Africa/Cairo', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Kigali', 'Africa/Lubumbashi', 'Africa/Lusaka', 'Africa/Maputo', 'Africa/Maseru', 'Africa/Tripoli', 'Africa/Windhoek', 'Africa/Blantyre', 'Africa/Ceuta', 'Africa/Gaborone', 'Africa/Mbabane', 'Asia/Gaza', 'Asia/Nicosia', 'Atlantic/Jan_Mayen', 'CET', 'Egypt', 'Libya', 'MET', 'Poland', 'WET', 'Europe/Amsterdam', 'Europe/Andorra', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Gibraltar', 'Europe/Ljubljana', 'Europe/Luxembourg', 'Europe/Madrid', 'Europe/Malta', 'Europe/Monaco', 'Europe/Oslo', 'Europe/Paris', 'Europe/Prague', 'Europe/Rome', 'Europe/San_Marino', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Stockholm', 'Europe/Tirane', 'Europe/Vaduz', 'Europe/Vatican', 'Europe/Vienna', 'Europe/Warsaw', 'Europe/Zagreb', 'Europe/Zurich', ],
    '+3' : ['Africa/Addis_Ababa', 'Africa/Asmera', 'Africa/Dar_es_Salaam', 'Africa/Djibouti', 'Africa/Kampala', 'Africa/Mogadishu', 'Africa/Nairobi', 'Africa/Khartoum', 'Antarctica/Syowa', 'Asia/Aden', 'Asia/Amman', 'Asia/Baghdad', 'Asia/Beirut', 'Asia/Damascus', 'Asia/Jerusalem', 'Asia/Kuwait', 'Asia/Riyadh', 'Asia/Riyadh87', 'Asia/Riyadh88', 'Asia/Riyadh89', 'Asia/Bahrain', 'Asia/Istanbul', 'Asia/Qatar', 'Asia/Tehran', 'Asia/Tel_Aviv', 'EET', 'Iran', 'Israel', 'Turkey', 'Europe/Athens', 'Europe/Bucharest', 'Europe/Chisinau', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Minsk', 'Europe/Nicosia', 'Europe/Riga', 'Europe/Rome', 'Europe/Sofia', 'Europe/Tallinn', 'Europe/Tiraspol', 'Europe/Uzhgorod', 'Europe/Vilnius', 'Europe/Zaporozhye', 'Indian/Antananarivo', 'Indian/Comoro', 'Indian/Mayotte', ],
    '+4' : ['Asia/Baku', 'Asia/Dubai', 'Asia/Kabul', 'Asia/Muscat', 'Asia/Tbilisi', 'Asia/Yerevan', 'W-SU', 'Europe/Moscow', 'Europe/Samara', 'Europe/Simferopol', 'Indian/Mahe', 'Indian/Mauritius', 'Indian/Reunion', ],
    '+5' : ['Antarctica/Mawson', 'Asia/Aqtau', 'Asia/Aqtobe', 'Asia/Ashgabat', 'Asia/Ashkhabad', 'Asia/Calcutta', 'Asia/Colombo', 'Asia/Dushanbe', 'Asia/Karachi', 'Asia/Oral', 'Asia/Samarkand', 'Asia/Tashkent', 'Indian/Kerguelen', 'Indian/Maldives', ],
    '+6' : ['Asia/Almaty', 'Asia/Bishkek', 'Asia/Dacca', 'Asia/Dhaka', 'Asia/Kathmandu', 'Asia/Qyzylorda', 'Asia/Rangoon', 'Asia/Thimbu', 'Asia/Thimphu', 'Asia/Urumqi', 'Asia/Yekaterinburg', 'Indian/Chagos', 'Indian/Cocos', ],
    '+7' : ['Antarctica/Davis', 'Asia/Bangkok', 'Asia/Hovd', 'Asia/Jakarta', 'Asia/Novosibirsk', 'Asia/Omsk', 'Asia/Phnom_Penh', 'Asia/Saigon', 'Asia/Vientiane', 'Indian/Christmas', ],
    '+8' : ['Antarctica/Casey', 'Asia/Brunei', 'Asia/Chungking', 'Asia/Harbin', 'Asia/Hong_Kong', 'Asia/Kashgar', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuching', 'Asia/Macao', 'Asia/Macau', 'Asia/Makassar', 'Asia/Manila', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Taipei', 'Asia/Ujung_Pandang', 'Asia/Ulaanbaatar', 'Asia/Ulan_Bator', 'Australia/Perth', 'Australia/West', 'PRC', 'ROC', 'Asia/Beijing', ],
    '+9' : ['Asia/Dili', 'Asia/Irkutsk', 'Asia/Jayapura', 'Asia/Pyongyang', 'Asia/Seoul', 'Asia/Tokyo', 'Australia/Darwin', 'Australia/North', 'Japan', 'ROK', 'Pacific/Palau', ],
    '+10': ['Antarctica/DumontDUrville', 'Asia/Yakutsk', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Broken_Hill', 'Australia/Lindeman', 'Australia/Queensland', 'Australia/South', 'Australia/Yancowinna', 'Pacific/Guam', 'Pacific/Port_Moresby', 'Pacific/Saipan', 'Pacific/Truk', 'Pacific/Yap'],
    '+11': ['Asia/Vladivostok', 'Australia/ACT', 'Australia/Canberra', 'Australia/Hobart', 'Australia/LHI', 'Australia/Lord_Howe', 'Australia/Melbourne', 'Australia/NSW', 'Australia/Sydney', 'Australia/Tasmania', 'Australia/Victoria', 'Pacific/Efate', 'Pacific/Guadalcanal', 'Pacific/Kosrae', 'Pacific/Norfolk', 'Pacific/Noumea', 'Pacific/Ponape', ],
    '+12': ['Antarctica/McMurdo', 'Antarctica/South_Pole', 'Asia/Anadyr', 'Asia/Kamchatka', 'Asia/Magadan', 'Pacific/Fiji', 'Pacific/Funafuti', 'Pacific/Kwajalein', 'Pacific/Majuro', 'Pacific/Nauru', 'Pacific/Tarawa', 'Pacific/Wake', 'Pacific/Wallis', ],
    '+13': ['NZ', 'NZ-CHAT', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Enderbury', 'Pacific/Fakaofo', 'Pacific/Tongatapu', ],
    '+14': ['Pacific/Apia', 'Pacific/Kiritimati', ],
}

If there's anything wrong, please inform me, thank you.

Reference:
http://localtimes.info/
http://www.timeanddate.com/worldclock/
http://www.zeitverschiebung.net/en/all-time-zones.html
http://www.travelmath.com/time-zone/
http://www.worldtimeserver.com/

沒有留言:

張貼留言