public
Created

  • Download Gist
timezonelist.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
 
function getTzMap() {
/**
* Nice, succinct yet complete timezone list, ported from
* http://www.unicode.org/cldr/data/docs/design/formatting/zone_log.html#windows_ids
*/
return array(
'-12' => array(
'(STD) International Date Line West' => 'Etc/GMT+12'
),
'-11' => array(
'(STD) Midway Island, Samoa' => 'Pacific/Apia'
),
'-10' => array(
'(STD) Hawaii' => 'Pacific/Honolulu'
),
'-9' => array(
'(DST) Alaska' => 'America/Anchorage'
),
'-8' => array(
'(DST) Pacific Time (US & Canada); Tijuana' => 'America/Los_Angeles'
),
'-7' => array(
'(STD) Arizona' => 'America/Phoenix',
'(DST) Mountain Time (US & Canada)' => 'America/Denver',
'(DST) Chihuahua, La Paz, Mazatlan' => 'America/Chihuahua'
),
'-6' => array(
'(STD) Saskatchewan' => 'America/Regina',
'(STD) Central America' => 'America/Managua',
'(DST) Central Time (US & Canada)' => 'America/Chicago',
'(DST) Guadalajara, Mexico City, Monterrey' => 'America/Mexico_City',
),
'-5' => array(
'(STD) Indiana (East)' => 'America/Indianapolis',
'(STD) Bogota, Lima, Quito' => 'America/Bogota',
'(DST) Eastern Time (US & Canada)' => 'America/New_York'
),
'-4' => array(
'(STD) Caracas, La Paz' => 'America/Caracas',
'(DST) Atlantic Time (Canada)' => 'America/Halifax',
'(DST) Santiago' => 'America/Santiago',
),
'-3.5' => array(
'(DST) Newfoundland' => 'America/St_Johns'
),
'-3' => array(
'(STD) Buenos Aires, Georgetown' => 'America/Buenos_Aires',
'(DST) Greenland' => 'America/Godthab',
'(DST) Brasilia' => 'America/Sao_Paulo'
),
'-2' => array(
'(DST) Mid-Atlantic' => 'America/Noronha'
),
'-1' => array(
'(STD) Cape Verde Is.' => 'Atlantic/Cape_Verde',
'(DST) Azores' => 'Atlantic/Azores'
),
'0' => array(
'(STD) Casablanca, Monrovia' => 'Africa/Casablanca',
'(DST) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London' => 'Europe/London'
),
'1' => array(
'(STD) West Central Africa' => 'Africa/Lagos',
'(DST) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna' => 'Europe/Berlin',
'(DST) Brussels, Copenhagen, Madrid, Paris' => 'Europe/Paris',
'(DST) Sarajevo, Skopje, Warsaw, Zagreb' => 'Europe/Sarajevo',
'(DST) Belgrade, Bratislava, Budapest, Ljubljana, Prague' => 'Europe/Belgrade'
),
'2' => array(
'(STD) Harare, Pretoria' => 'Africa/Johannesburg',
'(STD) Jerusalem' => 'Asia/Jerusalem',
'(DST) Athens, Istanbul, Minsk' => 'Europe/Istanbul',
'(DST) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius' => 'Europe/Helsinki',
'(DST) Cairo' => 'Africa/Cairo',
'(DST) Bucharest' => 'Europe/Bucharest'
),
'3' => array(
'(STD) Nairobi' => 'Africa/Nairobi',
'(STD) Kuwait, Riyadh' => 'Asia/Riyadh',
'(DST) Moscow, St. Petersburg, Volgograd' => 'Europe/Moscow',
'(DST) Baghdad' => 'Asia/Baghdad'
),
'3.5' => array(
'(DST) Tehran' => 'Asia/Tehran'
),
'4' => array(
'(STD) Abu Dhabi, Muscat' => 'Asia/Muscat',
'(DST) Baku, Tbilisi, Yerevan' => 'Asia/Tbilisi',
),
'4.5' => array(
'(STD) Kabul' => 'Asia/Kabul'
),
'5' => array(
'(STD) Islamabad, Karachi, Tashkent' => 'Asia/Karachi',
'(DST) Ekaterinburg' => 'Asia/Yekaterinburg'
),
'5.5' => array(
'(STD) Chennai, Kolkata, Mumbai, New Delhi' => 'Asia/Calcutta'
),
'5.75' => array(
'(STD) Kathmandu' => 'Asia/Katmandu'
),
'6' => array(
'(STD) Sri Jayawardenepura' => 'Asia/Colombo',
'(STD) Astana, Dhaka' => 'Asia/Dhaka',
'(DST) Almaty, Novosibirsk' => 'Asia/Novosibirsk'
),
'6.5' => array(
'(STD) Rangoon' => 'Asia/Rangoon'
),
'7' => array(
'(STD) Bangkok, Hanoi, Jakarta' => 'Asia/Bangkok',
'(DST) Krasnoyarsk' => 'Asia/Krasnoyarsk'
),
'8' => array(
'(STD) Perth' => 'Australia/Perth',
'(STD) Taipei' => 'Asia/Taipei',
'(STD) Kuala Lumpur, Singapore' => 'Asia/Singapore',
'(STD) Beijing, Chongqing, Hong Kong, Urumqi' => 'Asia/Hong_Kong',
'(DST) Irkutsk, Ulaan Bataar' => 'Asia/Irkutsk'
),
'9' => array(
'(STD) Osaka, Sapporo, Tokyo' => 'Asia/Tokyo',
'(STD) Seoul' => 'Asia/Seoul',
'(DST) Yakutsk' => 'Asia/Yakutsk'
),
'9.5' => array(
'(STD) Darwin' => 'Australia/Darwin',
'(DST) Adelaide' => 'Australia/Adelaide'
),
'10' => array(
'(STD) Guam, Port Moresby' => 'Pacific/Guam',
'(STD) Brisbane' => 'Australia/Brisbane',
'(DST) Vladivostok' => 'Asia/Vladivostok',
'(DST) Hobart' => 'Australia/Hobart',
'(DST) Canberra, Melbourne, Sydney' => 'Australia/Sydney'
),
'11' => array(
'(STD) Magadan, Solomon Is., New Caledonia' => 'Asia/Magadan'
),
'12' => array(
'(STD) Fiji, Kamchatka, Marshall Is.' => 'Pacific/Fiji',
'(DST) Auckland, Wellington' => 'Pacific/Auckland'
),
'13' => array(
'(STD) Nuku\'alofa' => 'Pacific/Tongatapu'
)
);
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.