2011年4月18日月曜日

オフセットごとのタイムゾーン一覧

スズキです。

"Asia/Tokyo"と同じオフセットのタイムゾーンが知りたくて、以下のようなPerlスクリプトで、
オフセットごとのタイムゾーン一覧を作成してみました。

--------【Perl】--------
use DateTime;
use DateTime::TimeZone;

my @tz_names = DateTime::TimeZone->all_names;
my %results  = ();

foreach(@tz_names) {
    my $tz = DateTime::TimeZone->new(name =>$_);
    $results{$_} = $tz->offset_for_datetime(DateTime->now());
}

my $offset = 0;
foreach(sort{$results{$a} <=> $results{$b}}(keys(%results))) {
    if($offset != $results{$_}) {
        $offset =  $results{$_};
        print("\n[");
        print(DateTime::TimeZone->offset_as_string($results{$_}));
        print("]\n");
    }
    print("$_, ");
}
--------
※事前に"yum install perl-DateTime"を実行しています。

出力結果は以下となります。([オフセット]です)

--------
[-1100]
Pacific/Niue, Pacific/Pago_Pago, Pacific/Midway, Pacific/Apia,
[-1000]
Pacific/Tahiti, HST, Pacific/Rarotonga, Pacific/Fakaofo, Pacific/Johnston, Pacific/Honolulu,
[-0930]
Pacific/Marquesas,
[-0900]
America/Adak, Pacific/Gambier,
[-0800]
America/Juneau, America/Yakutat, Pacific/Pitcairn, America/Nome, America/Anchorage,
[-0700]
America/Whitehorse, America/Los_Angeles, America/Hermosillo, America/Dawson_Creek, America/Tijuana, America/Dawson, PST8PDT, MST, America/Vancouver, America/Phoenix,
[-0600]
America/Mazatlan, America/Inuvik, America/El_Salvador, America/Yellowknife, MST7MDT, America/Boise, America/Costa_Rica, America/Regina, America/Swift_Current, America/Belize, Pacific/Galapagos, America/Chihuahua, America/Edmonton, Pacific/Easter, America/Cambridge_Bay, America/Tegucigalpa, America/Guatemala, America/Managua, America/Denver,
[-0500]
America/Bogota, America/Indiana/Knox, America/Cayman, America/North_Dakota/New_Salem, America/Atikokan, EST, America/Rainy_River, America/Jamaica, CST6CDT, America/Monterrey, America/Menominee, America/Merida, America/Cancun, America/North_Dakota/Center, America/Resolute, America/Rankin_Inlet, America/Winnipeg, America/Port-au-Prince, America/Mexico_City, America/Lima, America/Guayaquil, America/Chicago, America/Indiana/Tell_City, America/Panama,
[-0430]
America/Caracas,
[-0400]
Antarctica/Palmer, America/Indiana/Vincennes, America/Nassau, America/St_Kitts, America/Grenada, America/Indiana/Vevay, America/Guyana, America/Antigua, America/New_York, America/Blanc-Sablon, America/Havana, America/Guadeloupe, America/Barbados, Atlantic/Stanley, America/St_Thomas, America/Cuiaba, America/Manaus, America/Kentucky/Louisville, America/La_Paz, America/Nipigon, America/Porto_Velho, America/Kentucky/Monticello, America/Iqaluit, America/Thunder_Bay, America/Toronto, America/Martinique, America/Detroit, America/Asuncion, America/Indiana/Petersburg, America/Montreal, America/Anguilla, America/Indiana/Indianapolis, America/St_Vincent, America/Indiana/Winamac, America/Dominica, America/Eirunepe, America/St_Lucia, America/Pangnirtung, America/Indiana/Marengo, EST5EDT, America/Curacao, America/Rio_Branco, America/Argentina/San_Luis, America/Santiago, America/Campo_Grande, America/Boa_Vista, America/Santo_Domingo, America/Grand_Turk, America/Aruba, America/Port_of_Spain, America/Montserrat, America/Tortola, America/Puerto_Rico,
[-0300]
America/Halifax, America/Bahia, America/Santarem, America/Argentina/Mendoza, America/Argentina/Cordoba, America/Glace_Bay, America/Argentina/Rio_Gallegos, America/Cayenne, America/Recife, America/Argentina/La_Rioja, America/Argentina/Salta, America/Montevideo, America/Argentina/San_Juan, America/Moncton, America/Goose_Bay, America/Thule, America/Maceio, America/Araguaina, America/Argentina/Jujuy, America/Argentina/Tucuman, America/Sao_Paulo, America/Fortaleza, America/Belem, America/Argentina/Catamarca, America/Argentina/Buenos_Aires, America/Argentina/Ushuaia, America/Paramaribo, Antarctica/Rothera, Atlantic/Bermuda,
[-0230]
America/St_Johns,
[-0200]
America/Miquelon, Atlantic/South_Georgia, America/Godthab, America/Noronha,
[-0100]
Atlantic/Cape_Verde,
[+0000]
Africa/Conakry, Atlantic/Reykjavik, Africa/Ouagadougou, Africa/Abidjan, Africa/Sao_Tome, Africa/Monrovia, America/Danmarkshavn, Africa/Bissau, Africa/El_Aaiun, Africa/Banjul, Africa/Lome, Atlantic/St_Helena, Africa/Dakar, Africa/Bamako, Africa/Casablanca, Africa/Nouakchott, Atlantic/Azores, America/Scoresbysund, Africa/Accra, Africa/Freetown,
[+0100]
Africa/Kinshasa, Africa/Porto-Novo, Africa/Luanda, Africa/Algiers, Atlantic/Canary, Africa/Libreville, Africa/Malabo, Africa/Brazzaville, Europe/London, Africa/Douala, Africa/Windhoek, Africa/Bangui, Africa/Lagos, WET, Africa/Niamey, Europe/Lisbon, Atlantic/Faroe, Africa/Ndjamena, Europe/Dublin, Atlantic/Madeira,
[+0200]
Europe/Belgrade, Europe/Vaduz, Africa/Bujumbura, Africa/Blantyre, Africa/Harare, Europe/Warsaw, Europe/Brussels, MET, Africa/Lusaka, Europe/Madrid, Africa/Tunis, Europe/Amsterdam, Europe/Malta, Africa/Tripoli, Europe/Paris, Europe/Berlin, Africa/Mbabane, Africa/Lubumbashi, Europe/Rome, Europe/Budapest, Africa/Maseru, Europe/Oslo, Europe/Prague, Africa/Johannesburg, Africa/Gaborone, Africa/Cairo, Africa/Kigali, Europe/Gibraltar, Europe/Andorra, Europe/Copenhagen, Europe/Tirane, Africa/Ceuta, Africa/Maputo, CET, Europe/Luxembourg, Europe/Monaco, Europe/Vienna, Europe/Zurich, Europe/Stockholm,
[+0300]
Asia/Baghdad, Asia/Beirut, Africa/Nairobi, Asia/Bahrain, Africa/Addis_Ababa, Asia/Jerusalem, Europe/Chisinau, Asia/Kuwait, Europe/Bucharest, Europe/Istanbul, Indian/Comoro, Europe/Kaliningrad, Africa/Mogadishu, Indian/Antananarivo, Europe/Riga, Europe/Vilnius, Africa/Kampala, Europe/Uzhgorod, Africa/Dar_es_Salaam, Asia/Amman, Europe/Simferopol, Europe/Minsk, Europe/Helsinki, Africa/Khartoum, Indian/Mayotte, Africa/Djibouti, Asia/Aden, Africa/Asmara, Asia/Nicosia, Asia/Riyadh, Europe/Athens, Asia/Gaza, Antarctica/Syowa, Asia/Damascus, Asia/Qatar, Europe/Sofia, Europe/Kiev, Europe/Zaporozhye, Europe/Tallinn, EET,
[+0400]
Asia/Muscat, Indian/Mauritius, Asia/Dubai, Asia/Tbilisi, Europe/Moscow, Europe/Volgograd, Indian/Reunion, Indian/Mahe,
[+0430]
Asia/Kabul, Asia/Tehran,
[+0500]
Asia/Aqtau, Asia/Dushanbe, Asia/Samarkand, Indian/Kerguelen, Indian/Maldives, Asia/Tashkent, Asia/Yerevan, Asia/Aqtobe, Asia/Oral, Asia/Ashgabat, Antarctica/Davis, Asia/Baku, Antarctica/Mawson, Europe/Samara,
[+0530]
Asia/Colombo, Asia/Kolkata,
[+0545]
Asia/Kathmandu,
[+0600]
Antarctica/Vostok, Asia/Bishkek, Asia/Qyzylorda, Asia/Thimphu, Indian/Chagos, Asia/Yekaterinburg, Asia/Almaty, Asia/Karachi,
[+0630]
Indian/Cocos, Asia/Rangoon,
[+0700]
Asia/Dhaka, Asia/Pontianak, Asia/Ho_Chi_Minh, Indian/Christmas, Asia/Phnom_Penh, Asia/Novosibirsk, Asia/Hovd, Asia/Novokuznetsk, Asia/Vientiane, Asia/Omsk, Asia/Bangkok, Asia/Jakarta,
[+0800]
Asia/Manila, Asia/Ulaanbaatar, Asia/Krasnoyarsk, Asia/Shanghai, Asia/Makassar, Asia/Kashgar, Australia/Perth, Asia/Urumqi, Asia/Choibalsan, Asia/Harbin, Asia/Brunei, Asia/Macau, Asia/Singapore, Asia/Chongqing, Asia/Hong_Kong, Asia/Kuala_Lumpur, Asia/Kuching, Asia/Taipei,
[+0845]
Australia/Eucla,
[+0900]
Asia/Pyongyang, Asia/Irkutsk, Pacific/Palau, Asia/Tokyo, Asia/Jayapura, Asia/Dili, Asia/Seoul,
[+0930]
Australia/Broken_Hill, Australia/Adelaide, Australia/Darwin,
[+1000]
Pacific/Guam, Australia/Currie, Pacific/Truk, Antarctica/DumontDUrville, Australia/Melbourne, Australia/Sydney, Australia/Lindeman, Pacific/Saipan, Asia/Yakutsk, Australia/Brisbane, Pacific/Port_Moresby, Australia/Hobart,
[+1030]
Australia/Lord_Howe,
[+1100]
Antarctica/Casey, Asia/Vladivostok, Asia/Sakhalin, Pacific/Guadalcanal, Pacific/Ponape, Pacific/Noumea, Pacific/Efate, Pacific/Kosrae,
[+1130]
Pacific/Norfolk,
[+1200]
Pacific/Wake, Pacific/Fiji, Pacific/Nauru, Pacific/Kwajalein, Pacific/Majuro, Asia/Magadan, Pacific/Funafuti, Pacific/Tarawa, Antarctica/McMurdo, Pacific/Wallis, Pacific/Auckland,
[+1245]
Pacific/Chatham,
[+1300]
Asia/Anadyr, Pacific/Tongatapu, Pacific/Enderbury, Asia/Kamchatka,
[+1400]
Pacific/Kiritimati,
--------

"Asia/Tokyo"と同じオフセットのものは

"Asia/Pyongyang"
"Asia/Irkutsk"
"Pacific/Palau"
"Asia/Jayapura"
"Asia/Dili"
"Asia/Seoul"

でした。

RDSの"init_connect"が調子悪いなー...
--------
http://www.suz-lab.com

0 コメント: