timezone_identifiers_list
Description
The timezone_identifiers_list of Date / Time for PHP returns a numerically indexed array containing all defined timezone identifiers.
Syntax
timezone_identifiers_list( int $timezoneGroup = DateTimeZone::ALL, ?string $countryCode = null ): array
Parameters
timezoneGroup
One of the DateTimeZone class constants (or a combination).
countryCode
A two-letter ISO 3166-1 compatible country code.
NOTE: This option is only used when timezoneGroup is set to DateTimeZone::PER_COUNTRY.
Return
Returns the array of timezone identifiers. Only non-outdated items are returned. To get all, including outdated timezone identifiers, use the DateTimeZone::ALL_WITH_BC as value for timezoneGroup.
Examples
1 · void
<? $return = timezone_identifiers_list(); print_r($return);
Array ( [0] => Africa/Abidjan [1] => Africa/Accra [2] => Africa/Addis_Ababa [3] => Africa/Algiers [4] => Africa/Asmara [5] => Africa/Bamako [6] => Africa/Bangui [7] => Africa/Banjul [8] => Africa/Bissau [9] => Africa/Blantyre [10] => Africa/Brazzaville [11] => Africa/Bujumbura [12] => Africa/Cairo [13] => Africa/Casablanca [14] => Africa/Ceuta [15] => Africa/Conakry [16] => Africa/Dakar [17] => Africa/Dar_es_Salaam [18] => Africa/Djibouti [19] => Africa/Douala [20] => Africa/El_Aaiun [21] => Africa/Freetown [22] => Africa/Gaborone [23] => Africa/Harare [24] => Africa/Johannesburg [25] => Africa/Juba [26] => Africa/Kampala [27] => Africa/Khartoum [28] => Africa/Kigali [29] => Africa/Kinshasa [30] => Africa/Lagos [31] => Africa/Libreville [32] => Africa/Lome [33] => Africa/Luanda [34] => Africa/Lubumbashi [35] => Africa/Lusaka [36] => Africa/Malabo [37] => Africa/Maputo [38] => Africa/Maseru [39] => Africa/Mbabane [40] => Africa/Mogadishu [41] => Africa/Monrovia [42] => Africa/Nairobi [43] => Africa/Ndjamena [44] => Africa/Niamey [45] => Africa/Nouakchott [46] => Africa/Ouagadougou [47] => Africa/Porto-Novo [48] => Africa/Sao_Tome [49] => Africa/Tripoli [50] => Africa/Tunis [51] => Africa/Windhoek [52] => America/Adak [53] => America/Anchorage [54] => America/Anguilla [55] => America/Antigua [56] => America/Araguaina [57] => America/Argentina/Buenos_Aires [58] => America/Argentina/Catamarca [59] => America/Argentina/Cordoba [60] => America/Argentina/Jujuy [61] => America/Argentina/La_Rioja [62] => America/Argentina/Mendoza [63] => America/Argentina/Rio_Gallegos [64] => America/Argentina/Salta [65] => America/Argentina/San_Juan [66] => America/Argentina/San_Luis [67] => America/Argentina/Tucuman [68] => America/Argentina/Ushuaia [69] => America/Aruba [70] => America/Asuncion [71] => America/Atikokan [72] => America/Bahia [73] => America/Bahia_Banderas [74] => America/Barbados [75] => America/Belem [76] => America/Belize [77] => America/Blanc-Sablon [78] => America/Boa_Vista [79] => America/Bogota [80] => America/Boise [81] => America/Cambridge_Bay [82] => America/Campo_Grande [83] => America/Cancun [84] => America/Caracas [85] => America/Cayenne [86] => America/Cayman [87] => America/Chicago [88] => America/Chihuahua [89] => America/Ciudad_Juarez [90] => America/Costa_Rica [91] => America/Creston [92] => America/Cuiaba [93] => America/Curacao [94] => America/Danmarkshavn [95] => America/Dawson [96] => America/Dawson_Creek [97] => America/Denver [98] => America/Detroit [99] => America/Dominica [100] => America/Edmonton [101] => America/Eirunepe [102] => America/El_Salvador [103] => America/Fort_Nelson [104] => America/Fortaleza [105] => America/Glace_Bay [106] => America/Goose_Bay [107] => America/Grand_Turk [108] => America/Grenada [109] => America/Guadeloupe [110] => America/Guatemala [111] => America/Guayaquil [112] => America/Guyana [113] => America/Halifax [114] => America/Havana [115] => America/Hermosillo [116] => America/Indiana/Indianapolis [117] => America/Indiana/Knox [118] => America/Indiana/Marengo [119] => America/Indiana/Petersburg [120] => America/Indiana/Tell_City [121] => America/Indiana/Vevay [122] => America/Indiana/Vincennes [123] => America/Indiana/Winamac [124] => America/Inuvik [125] => America/Iqaluit [126] => America/Jamaica [127] => America/Juneau [128] => America/Kentucky/Louisville [129] => America/Kentucky/Monticello [130] => America/Kralendijk [131] => America/La_Paz [132] => America/Lima [133] => America/Los_Angeles [134] => America/Lower_Princes [135] => America/Maceio [136] => America/Managua [137] => America/Manaus [138] => America/Marigot [139] => America/Martinique [140] => America/Matamoros [141] => America/Mazatlan [142] => America/Menominee [143] => America/Merida [144] => America/Metlakatla [145] => America/Mexico_City [146] => America/Miquelon [147] => America/Moncton [148] => America/Monterrey [149] => America/Montevideo [150] => America/Montserrat [151] => America/Nassau [152] => America/New_York [153] => America/Nome [154] => America/Noronha [155] => America/North_Dakota/Beulah [156] => America/North_Dakota/Center [157] => America/North_Dakota/New_Salem [158] => America/Nuuk [159] => America/Ojinaga [160] => America/Panama [161] => America/Paramaribo [162] => America/Phoenix [163] => America/Port-au-Prince [164] => America/Port_of_Spain [165] => America/Porto_Velho [166] => America/Puerto_Rico [167] => America/Punta_Arenas [168] => America/Rankin_Inlet [169] => America/Recife [170] => America/Regina [171] => America/Resolute [172] => America/Rio_Branco [173] => America/Santarem [174] => America/Santiago [175] => America/Santo_Domingo [176] => America/Sao_Paulo [177] => America/Scoresbysund [178] => America/Sitka [179] => America/St_Barthelemy [180] => America/St_Johns [181] => America/St_Kitts [182] => America/St_Lucia [183] => America/St_Thomas [184] => America/St_Vincent [185] => America/Swift_Current [186] => America/Tegucigalpa [187] => America/Thule [188] => America/Tijuana [189] => America/Toronto [190] => America/Tortola [191] => America/Vancouver [192] => America/Whitehorse [193] => America/Winnipeg [194] => America/Yakutat [195] => Antarctica/Casey [196] => Antarctica/Davis [197] => Antarctica/DumontDUrville [198] => Antarctica/Macquarie [199] => Antarctica/Mawson [200] => Antarctica/McMurdo [201] => Antarctica/Palmer [202] => Antarctica/Rothera [203] => Antarctica/Syowa [204] => Antarctica/Troll [205] => Antarctica/Vostok [206] => Arctic/Longyearbyen [207] => Asia/Aden [208] => Asia/Almaty [209] => Asia/Amman [210] => Asia/Anadyr [211] => Asia/Aqtau [212] => Asia/Aqtobe [213] => Asia/Ashgabat [214] => Asia/Atyrau [215] => Asia/Baghdad [216] => Asia/Bahrain [217] => Asia/Baku [218] => Asia/Bangkok [219] => Asia/Barnaul [220] => Asia/Beirut [221] => Asia/Bishkek [222] => Asia/Brunei [223] => Asia/Chita [224] => Asia/Colombo [225] => Asia/Damascus [226] => Asia/Dhaka [227] => Asia/Dili [228] => Asia/Dubai [229] => Asia/Dushanbe [230] => Asia/Famagusta [231] => Asia/Gaza [232] => Asia/Hebron [233] => Asia/Ho_Chi_Minh [234] => Asia/Hong_Kong [235] => Asia/Hovd [236] => Asia/Irkutsk [237] => Asia/Jakarta [238] => Asia/Jayapura [239] => Asia/Jerusalem [240] => Asia/Kabul [241] => Asia/Kamchatka [242] => Asia/Karachi [243] => Asia/Kathmandu [244] => Asia/Khandyga [245] => Asia/Kolkata [246] => Asia/Krasnoyarsk [247] => Asia/Kuala_Lumpur [248] => Asia/Kuching [249] => Asia/Kuwait [250] => Asia/Macau [251] => Asia/Magadan [252] => Asia/Makassar [253] => Asia/Manila [254] => Asia/Muscat [255] => Asia/Nicosia [256] => Asia/Novokuznetsk [257] => Asia/Novosibirsk [258] => Asia/Omsk [259] => Asia/Oral [260] => Asia/Phnom_Penh [261] => Asia/Pontianak [262] => Asia/Pyongyang [263] => Asia/Qatar [264] => Asia/Qostanay [265] => Asia/Qyzylorda [266] => Asia/Riyadh [267] => Asia/Sakhalin [268] => Asia/Samarkand [269] => Asia/Seoul [270] => Asia/Shanghai [271] => Asia/Singapore [272] => Asia/Srednekolymsk [273] => Asia/Taipei [274] => Asia/Tashkent [275] => Asia/Tbilisi [276] => Asia/Tehran [277] => Asia/Thimphu [278] => Asia/Tokyo [279] => Asia/Tomsk [280] => Asia/Ulaanbaatar [281] => Asia/Urumqi [282] => Asia/Ust-Nera [283] => Asia/Vientiane [284] => Asia/Vladivostok [285] => Asia/Yakutsk [286] => Asia/Yangon [287] => Asia/Yekaterinburg [288] => Asia/Yerevan [289] => Atlantic/Azores [290] => Atlantic/Bermuda [291] => Atlantic/Canary [292] => Atlantic/Cape_Verde [293] => Atlantic/Faroe [294] => Atlantic/Madeira [295] => Atlantic/Reykjavik [296] => Atlantic/South_Georgia [297] => Atlantic/St_Helena [298] => Atlantic/Stanley [299] => Australia/Adelaide [300] => Australia/Brisbane [301] => Australia/Broken_Hill [302] => Australia/Darwin [303] => Australia/Eucla [304] => Australia/Hobart [305] => Australia/Lindeman [306] => Australia/Lord_Howe [307] => Australia/Melbourne [308] => Australia/Perth [309] => Australia/Sydney [310] => Europe/Amsterdam [311] => Europe/Andorra [312] => Europe/Astrakhan [313] => Europe/Athens [314] => Europe/Belgrade [315] => Europe/Berlin [316] => Europe/Bratislava [317] => Europe/Brussels [318] => Europe/Bucharest [319] => Europe/Budapest [320] => Europe/Busingen [321] => Europe/Chisinau [322] => Europe/Copenhagen [323] => Europe/Dublin [324] => Europe/Gibraltar [325] => Europe/Guernsey [326] => Europe/Helsinki [327] => Europe/Isle_of_Man [328] => Europe/Istanbul [329] => Europe/Jersey [330] => Europe/Kaliningrad [331] => Europe/Kirov [332] => Europe/Kyiv [333] => Europe/Lisbon [334] => Europe/Ljubljana [335] => Europe/London [336] => Europe/Luxembourg [337] => Europe/Madrid [338] => Europe/Malta [339] => Europe/Mariehamn [340] => Europe/Minsk [341] => Europe/Monaco [342] => Europe/Moscow [343] => Europe/Oslo [344] => Europe/Paris [345] => Europe/Podgorica [346] => Europe/Prague [347] => Europe/Riga [348] => Europe/Rome [349] => Europe/Samara [350] => Europe/San_Marino [351] => Europe/Sarajevo [352] => Europe/Saratov [353] => Europe/Simferopol [354] => Europe/Skopje [355] => Europe/Sofia [356] => Europe/Stockholm [357] => Europe/Tallinn [358] => Europe/Tirane [359] => Europe/Ulyanovsk [360] => Europe/Vaduz [361] => Europe/Vatican [362] => Europe/Vienna [363] => Europe/Vilnius [364] => Europe/Volgograd [365] => Europe/Warsaw [366] => Europe/Zagreb [367] => Europe/Zurich [368] => Indian/Antananarivo [369] => Indian/Chagos [370] => Indian/Christmas [371] => Indian/Cocos [372] => Indian/Comoro [373] => Indian/Kerguelen [374] => Indian/Mahe [375] => Indian/Maldives [376] => Indian/Mauritius [377] => Indian/Mayotte [378] => Indian/Reunion [379] => Pacific/Apia [380] => Pacific/Auckland [381] => Pacific/Bougainville [382] => Pacific/Chatham [383] => Pacific/Chuuk [384] => Pacific/Easter [385] => Pacific/Efate [386] => Pacific/Fakaofo [387] => Pacific/Fiji [388] => Pacific/Funafuti [389] => Pacific/Galapagos [390] => Pacific/Gambier [391] => Pacific/Guadalcanal [392] => Pacific/Guam [393] => Pacific/Honolulu [394] => Pacific/Kanton [395] => Pacific/Kiritimati [396] => Pacific/Kosrae [397] => Pacific/Kwajalein [398] => Pacific/Majuro [399] => Pacific/Marquesas [400] => Pacific/Midway [401] => Pacific/Nauru [402] => Pacific/Niue [403] => Pacific/Norfolk [404] => Pacific/Noumea [405] => Pacific/Pago_Pago [406] => Pacific/Palau [407] => Pacific/Pitcairn [408] => Pacific/Pohnpei [409] => Pacific/Port_Moresby [410] => Pacific/Rarotonga [411] => Pacific/Saipan [412] => Pacific/Tahiti [413] => Pacific/Tarawa [414] => Pacific/Tongatapu [415] => Pacific/Wake [416] => Pacific/Wallis [417] => UTC )
2 · timezoneGroup · one
<? $timezoneGroup = DateTimeZone::AMERICA; $return = timezone_identifiers_list($timezoneGroup); print_r($return);
Array ( [0] => America/Adak [1] => America/Anchorage [2] => America/Anguilla [3] => America/Antigua [4] => America/Araguaina [5] => America/Argentina/Buenos_Aires [6] => America/Argentina/Catamarca [7] => America/Argentina/Cordoba [8] => America/Argentina/Jujuy [9] => America/Argentina/La_Rioja [10] => America/Argentina/Mendoza [11] => America/Argentina/Rio_Gallegos [12] => America/Argentina/Salta [13] => America/Argentina/San_Juan [14] => America/Argentina/San_Luis [15] => America/Argentina/Tucuman [16] => America/Argentina/Ushuaia [17] => America/Aruba [18] => America/Asuncion [19] => America/Atikokan [20] => America/Bahia [21] => America/Bahia_Banderas [22] => America/Barbados [23] => America/Belem [24] => America/Belize [25] => America/Blanc-Sablon [26] => America/Boa_Vista [27] => America/Bogota [28] => America/Boise [29] => America/Cambridge_Bay [30] => America/Campo_Grande [31] => America/Cancun [32] => America/Caracas [33] => America/Cayenne [34] => America/Cayman [35] => America/Chicago [36] => America/Chihuahua [37] => America/Ciudad_Juarez [38] => America/Costa_Rica [39] => America/Creston [40] => America/Cuiaba [41] => America/Curacao [42] => America/Danmarkshavn [43] => America/Dawson [44] => America/Dawson_Creek [45] => America/Denver [46] => America/Detroit [47] => America/Dominica [48] => America/Edmonton [49] => America/Eirunepe [50] => America/El_Salvador [51] => America/Fort_Nelson [52] => America/Fortaleza [53] => America/Glace_Bay [54] => America/Goose_Bay [55] => America/Grand_Turk [56] => America/Grenada [57] => America/Guadeloupe [58] => America/Guatemala [59] => America/Guayaquil [60] => America/Guyana [61] => America/Halifax [62] => America/Havana [63] => America/Hermosillo [64] => America/Indiana/Indianapolis [65] => America/Indiana/Knox [66] => America/Indiana/Marengo [67] => America/Indiana/Petersburg [68] => America/Indiana/Tell_City [69] => America/Indiana/Vevay [70] => America/Indiana/Vincennes [71] => America/Indiana/Winamac [72] => America/Inuvik [73] => America/Iqaluit [74] => America/Jamaica [75] => America/Juneau [76] => America/Kentucky/Louisville [77] => America/Kentucky/Monticello [78] => America/Kralendijk [79] => America/La_Paz [80] => America/Lima [81] => America/Los_Angeles [82] => America/Lower_Princes [83] => America/Maceio [84] => America/Managua [85] => America/Manaus [86] => America/Marigot [87] => America/Martinique [88] => America/Matamoros [89] => America/Mazatlan [90] => America/Menominee [91] => America/Merida [92] => America/Metlakatla [93] => America/Mexico_City [94] => America/Miquelon [95] => America/Moncton [96] => America/Monterrey [97] => America/Montevideo [98] => America/Montserrat [99] => America/Nassau [100] => America/New_York [101] => America/Nome [102] => America/Noronha [103] => America/North_Dakota/Beulah [104] => America/North_Dakota/Center [105] => America/North_Dakota/New_Salem [106] => America/Nuuk [107] => America/Ojinaga [108] => America/Panama [109] => America/Paramaribo [110] => America/Phoenix [111] => America/Port-au-Prince [112] => America/Port_of_Spain [113] => America/Porto_Velho [114] => America/Puerto_Rico [115] => America/Punta_Arenas [116] => America/Rankin_Inlet [117] => America/Recife [118] => America/Regina [119] => America/Resolute [120] => America/Rio_Branco [121] => America/Santarem [122] => America/Santiago [123] => America/Santo_Domingo [124] => America/Sao_Paulo [125] => America/Scoresbysund [126] => America/Sitka [127] => America/St_Barthelemy [128] => America/St_Johns [129] => America/St_Kitts [130] => America/St_Lucia [131] => America/St_Thomas [132] => America/St_Vincent [133] => America/Swift_Current [134] => America/Tegucigalpa [135] => America/Thule [136] => America/Tijuana [137] => America/Toronto [138] => America/Tortola [139] => America/Vancouver [140] => America/Whitehorse [141] => America/Winnipeg [142] => America/Yakutat )
3 · timezoneGroup · multiple
<? $timezoneGroup = DateTimeZone::AMERICA | DateTimeZone::PACIFIC; $return = timezone_identifiers_list($timezoneGroup); print_r($return);
Array ( [0] => America/Adak [1] => America/Anchorage [2] => America/Anguilla [3] => America/Antigua [4] => America/Araguaina [5] => America/Argentina/Buenos_Aires [6] => America/Argentina/Catamarca [7] => America/Argentina/Cordoba [8] => America/Argentina/Jujuy [9] => America/Argentina/La_Rioja [10] => America/Argentina/Mendoza [11] => America/Argentina/Rio_Gallegos [12] => America/Argentina/Salta [13] => America/Argentina/San_Juan [14] => America/Argentina/San_Luis [15] => America/Argentina/Tucuman [16] => America/Argentina/Ushuaia [17] => America/Aruba [18] => America/Asuncion [19] => America/Atikokan [20] => America/Bahia [21] => America/Bahia_Banderas [22] => America/Barbados [23] => America/Belem [24] => America/Belize [25] => America/Blanc-Sablon [26] => America/Boa_Vista [27] => America/Bogota [28] => America/Boise [29] => America/Cambridge_Bay [30] => America/Campo_Grande [31] => America/Cancun [32] => America/Caracas [33] => America/Cayenne [34] => America/Cayman [35] => America/Chicago [36] => America/Chihuahua [37] => America/Ciudad_Juarez [38] => America/Costa_Rica [39] => America/Creston [40] => America/Cuiaba [41] => America/Curacao [42] => America/Danmarkshavn [43] => America/Dawson [44] => America/Dawson_Creek [45] => America/Denver [46] => America/Detroit [47] => America/Dominica [48] => America/Edmonton [49] => America/Eirunepe [50] => America/El_Salvador [51] => America/Fort_Nelson [52] => America/Fortaleza [53] => America/Glace_Bay [54] => America/Goose_Bay [55] => America/Grand_Turk [56] => America/Grenada [57] => America/Guadeloupe [58] => America/Guatemala [59] => America/Guayaquil [60] => America/Guyana [61] => America/Halifax [62] => America/Havana [63] => America/Hermosillo [64] => America/Indiana/Indianapolis [65] => America/Indiana/Knox [66] => America/Indiana/Marengo [67] => America/Indiana/Petersburg [68] => America/Indiana/Tell_City [69] => America/Indiana/Vevay [70] => America/Indiana/Vincennes [71] => America/Indiana/Winamac [72] => America/Inuvik [73] => America/Iqaluit [74] => America/Jamaica [75] => America/Juneau [76] => America/Kentucky/Louisville [77] => America/Kentucky/Monticello [78] => America/Kralendijk [79] => America/La_Paz [80] => America/Lima [81] => America/Los_Angeles [82] => America/Lower_Princes [83] => America/Maceio [84] => America/Managua [85] => America/Manaus [86] => America/Marigot [87] => America/Martinique [88] => America/Matamoros [89] => America/Mazatlan [90] => America/Menominee [91] => America/Merida [92] => America/Metlakatla [93] => America/Mexico_City [94] => America/Miquelon [95] => America/Moncton [96] => America/Monterrey [97] => America/Montevideo [98] => America/Montserrat [99] => America/Nassau [100] => America/New_York [101] => America/Nome [102] => America/Noronha [103] => America/North_Dakota/Beulah [104] => America/North_Dakota/Center [105] => America/North_Dakota/New_Salem [106] => America/Nuuk [107] => America/Ojinaga [108] => America/Panama [109] => America/Paramaribo [110] => America/Phoenix [111] => America/Port-au-Prince [112] => America/Port_of_Spain [113] => America/Porto_Velho [114] => America/Puerto_Rico [115] => America/Punta_Arenas [116] => America/Rankin_Inlet [117] => America/Recife [118] => America/Regina [119] => America/Resolute [120] => America/Rio_Branco [121] => America/Santarem [122] => America/Santiago [123] => America/Santo_Domingo [124] => America/Sao_Paulo [125] => America/Scoresbysund [126] => America/Sitka [127] => America/St_Barthelemy [128] => America/St_Johns [129] => America/St_Kitts [130] => America/St_Lucia [131] => America/St_Thomas [132] => America/St_Vincent [133] => America/Swift_Current [134] => America/Tegucigalpa [135] => America/Thule [136] => America/Tijuana [137] => America/Toronto [138] => America/Tortola [139] => America/Vancouver [140] => America/Whitehorse [141] => America/Winnipeg [142] => America/Yakutat [143] => Pacific/Apia [144] => Pacific/Auckland [145] => Pacific/Bougainville [146] => Pacific/Chatham [147] => Pacific/Chuuk [148] => Pacific/Easter [149] => Pacific/Efate [150] => Pacific/Fakaofo [151] => Pacific/Fiji [152] => Pacific/Funafuti [153] => Pacific/Galapagos [154] => Pacific/Gambier [155] => Pacific/Guadalcanal [156] => Pacific/Guam [157] => Pacific/Honolulu [158] => Pacific/Kanton [159] => Pacific/Kiritimati [160] => Pacific/Kosrae [161] => Pacific/Kwajalein [162] => Pacific/Majuro [163] => Pacific/Marquesas [164] => Pacific/Midway [165] => Pacific/Nauru [166] => Pacific/Niue [167] => Pacific/Norfolk [168] => Pacific/Noumea [169] => Pacific/Pago_Pago [170] => Pacific/Palau [171] => Pacific/Pitcairn [172] => Pacific/Pohnpei [173] => Pacific/Port_Moresby [174] => Pacific/Rarotonga [175] => Pacific/Saipan [176] => Pacific/Tahiti [177] => Pacific/Tarawa [178] => Pacific/Tongatapu [179] => Pacific/Wake [180] => Pacific/Wallis )
4 · timezoneGroup · include outdated
<? $timezoneGroup = DateTimeZone::ALL_WITH_BC; $return = timezone_identifiers_list($timezoneGroup); print_r($return);
Array ( [0] => Africa/Abidjan [1] => Africa/Accra [2] => Africa/Addis_Ababa [3] => Africa/Algiers [4] => Africa/Asmara [5] => Africa/Asmera [6] => Africa/Bamako [7] => Africa/Bangui [8] => Africa/Banjul [9] => Africa/Bissau [10] => Africa/Blantyre [11] => Africa/Brazzaville [12] => Africa/Bujumbura [13] => Africa/Cairo [14] => Africa/Casablanca [15] => Africa/Ceuta [16] => Africa/Conakry [17] => Africa/Dakar [18] => Africa/Dar_es_Salaam [19] => Africa/Djibouti [20] => Africa/Douala [21] => Africa/El_Aaiun [22] => Africa/Freetown [23] => Africa/Gaborone [24] => Africa/Harare [25] => Africa/Johannesburg [26] => Africa/Juba [27] => Africa/Kampala [28] => Africa/Khartoum [29] => Africa/Kigali [30] => Africa/Kinshasa [31] => Africa/Lagos [32] => Africa/Libreville [33] => Africa/Lome [34] => Africa/Luanda [35] => Africa/Lubumbashi [36] => Africa/Lusaka [37] => Africa/Malabo [38] => Africa/Maputo [39] => Africa/Maseru [40] => Africa/Mbabane [41] => Africa/Mogadishu [42] => Africa/Monrovia [43] => Africa/Nairobi [44] => Africa/Ndjamena [45] => Africa/Niamey [46] => Africa/Nouakchott [47] => Africa/Ouagadougou [48] => Africa/Porto-Novo [49] => Africa/Sao_Tome [50] => Africa/Timbuktu [51] => Africa/Tripoli [52] => Africa/Tunis [53] => Africa/Windhoek [54] => America/Adak [55] => America/Anchorage [56] => America/Anguilla [57] => America/Antigua [58] => America/Araguaina [59] => America/Argentina/Buenos_Aires [60] => America/Argentina/Catamarca [61] => America/Argentina/ComodRivadavia [62] => America/Argentina/Cordoba [63] => America/Argentina/Jujuy [64] => America/Argentina/La_Rioja [65] => America/Argentina/Mendoza [66] => America/Argentina/Rio_Gallegos [67] => America/Argentina/Salta [68] => America/Argentina/San_Juan [69] => America/Argentina/San_Luis [70] => America/Argentina/Tucuman [71] => America/Argentina/Ushuaia [72] => America/Aruba [73] => America/Asuncion [74] => America/Atikokan [75] => America/Atka [76] => America/Bahia [77] => America/Bahia_Banderas [78] => America/Barbados [79] => America/Belem [80] => America/Belize [81] => America/Blanc-Sablon [82] => America/Boa_Vista [83] => America/Bogota [84] => America/Boise [85] => America/Buenos_Aires [86] => America/Cambridge_Bay [87] => America/Campo_Grande [88] => America/Cancun [89] => America/Caracas [90] => America/Catamarca [91] => America/Cayenne [92] => America/Cayman [93] => America/Chicago [94] => America/Chihuahua [95] => America/Ciudad_Juarez [96] => America/Coral_Harbour [97] => America/Cordoba [98] => America/Costa_Rica [99] => America/Creston [100] => America/Cuiaba [101] => America/Curacao [102] => America/Danmarkshavn [103] => America/Dawson [104] => America/Dawson_Creek [105] => America/Denver [106] => America/Detroit [107] => America/Dominica [108] => America/Edmonton [109] => America/Eirunepe [110] => America/El_Salvador [111] => America/Ensenada [112] => America/Fort_Nelson [113] => America/Fort_Wayne [114] => America/Fortaleza [115] => America/Glace_Bay [116] => America/Godthab [117] => America/Goose_Bay [118] => America/Grand_Turk [119] => America/Grenada [120] => America/Guadeloupe [121] => America/Guatemala [122] => America/Guayaquil [123] => America/Guyana [124] => America/Halifax [125] => America/Havana [126] => America/Hermosillo [127] => America/Indiana/Indianapolis [128] => America/Indiana/Knox [129] => America/Indiana/Marengo [130] => America/Indiana/Petersburg [131] => America/Indiana/Tell_City [132] => America/Indiana/Vevay [133] => America/Indiana/Vincennes [134] => America/Indiana/Winamac [135] => America/Indianapolis [136] => America/Inuvik [137] => America/Iqaluit [138] => America/Jamaica [139] => America/Jujuy [140] => America/Juneau [141] => America/Kentucky/Louisville [142] => America/Kentucky/Monticello [143] => America/Knox_IN [144] => America/Kralendijk [145] => America/La_Paz [146] => America/Lima [147] => America/Los_Angeles [148] => America/Louisville [149] => America/Lower_Princes [150] => America/Maceio [151] => America/Managua [152] => America/Manaus [153] => America/Marigot [154] => America/Martinique [155] => America/Matamoros [156] => America/Mazatlan [157] => America/Mendoza [158] => America/Menominee [159] => America/Merida [160] => America/Metlakatla [161] => America/Mexico_City [162] => America/Miquelon [163] => America/Moncton [164] => America/Monterrey [165] => America/Montevideo [166] => America/Montreal [167] => America/Montserrat [168] => America/Nassau [169] => America/New_York [170] => America/Nipigon [171] => America/Nome [172] => America/Noronha [173] => America/North_Dakota/Beulah [174] => America/North_Dakota/Center [175] => America/North_Dakota/New_Salem [176] => America/Nuuk [177] => America/Ojinaga [178] => America/Panama [179] => America/Pangnirtung [180] => America/Paramaribo [181] => America/Phoenix [182] => America/Port-au-Prince [183] => America/Port_of_Spain [184] => America/Porto_Acre [185] => America/Porto_Velho [186] => America/Puerto_Rico [187] => America/Punta_Arenas [188] => America/Rainy_River [189] => America/Rankin_Inlet [190] => America/Recife [191] => America/Regina [192] => America/Resolute [193] => America/Rio_Branco [194] => America/Rosario [195] => America/Santa_Isabel [196] => America/Santarem [197] => America/Santiago [198] => America/Santo_Domingo [199] => America/Sao_Paulo [200] => America/Scoresbysund [201] => America/Shiprock [202] => America/Sitka [203] => America/St_Barthelemy [204] => America/St_Johns [205] => America/St_Kitts [206] => America/St_Lucia [207] => America/St_Thomas [208] => America/St_Vincent [209] => America/Swift_Current [210] => America/Tegucigalpa [211] => America/Thule [212] => America/Thunder_Bay [213] => America/Tijuana [214] => America/Toronto [215] => America/Tortola [216] => America/Vancouver [217] => America/Virgin [218] => America/Whitehorse [219] => America/Winnipeg [220] => America/Yakutat [221] => America/Yellowknife [222] => Antarctica/Casey [223] => Antarctica/Davis [224] => Antarctica/DumontDUrville [225] => Antarctica/Macquarie [226] => Antarctica/Mawson [227] => Antarctica/McMurdo [228] => Antarctica/Palmer [229] => Antarctica/Rothera [230] => Antarctica/South_Pole [231] => Antarctica/Syowa [232] => Antarctica/Troll [233] => Antarctica/Vostok [234] => Arctic/Longyearbyen [235] => Asia/Aden [236] => Asia/Almaty [237] => Asia/Amman [238] => Asia/Anadyr [239] => Asia/Aqtau [240] => Asia/Aqtobe [241] => Asia/Ashgabat [242] => Asia/Ashkhabad [243] => Asia/Atyrau [244] => Asia/Baghdad [245] => Asia/Bahrain [246] => Asia/Baku [247] => Asia/Bangkok [248] => Asia/Barnaul [249] => Asia/Beirut [250] => Asia/Bishkek [251] => Asia/Brunei [252] => Asia/Calcutta [253] => Asia/Chita [254] => Asia/Choibalsan [255] => Asia/Chongqing [256] => Asia/Chungking [257] => Asia/Colombo [258] => Asia/Dacca [259] => Asia/Damascus [260] => Asia/Dhaka [261] => Asia/Dili [262] => Asia/Dubai [263] => Asia/Dushanbe [264] => Asia/Famagusta [265] => Asia/Gaza [266] => Asia/Harbin [267] => Asia/Hebron [268] => Asia/Ho_Chi_Minh [269] => Asia/Hong_Kong [270] => Asia/Hovd [271] => Asia/Irkutsk [272] => Asia/Istanbul [273] => Asia/Jakarta [274] => Asia/Jayapura [275] => Asia/Jerusalem [276] => Asia/Kabul [277] => Asia/Kamchatka [278] => Asia/Karachi [279] => Asia/Kashgar [280] => Asia/Kathmandu [281] => Asia/Katmandu [282] => Asia/Khandyga [283] => Asia/Kolkata [284] => Asia/Krasnoyarsk [285] => Asia/Kuala_Lumpur [286] => Asia/Kuching [287] => Asia/Kuwait [288] => Asia/Macao [289] => Asia/Macau [290] => Asia/Magadan [291] => Asia/Makassar [292] => Asia/Manila [293] => Asia/Muscat [294] => Asia/Nicosia [295] => Asia/Novokuznetsk [296] => Asia/Novosibirsk [297] => Asia/Omsk [298] => Asia/Oral [299] => Asia/Phnom_Penh [300] => Asia/Pontianak [301] => Asia/Pyongyang [302] => Asia/Qatar [303] => Asia/Qostanay [304] => Asia/Qyzylorda [305] => Asia/Rangoon [306] => Asia/Riyadh [307] => Asia/Saigon [308] => Asia/Sakhalin [309] => Asia/Samarkand [310] => Asia/Seoul [311] => Asia/Shanghai [312] => Asia/Singapore [313] => Asia/Srednekolymsk [314] => Asia/Taipei [315] => Asia/Tashkent [316] => Asia/Tbilisi [317] => Asia/Tehran [318] => Asia/Tel_Aviv [319] => Asia/Thimbu [320] => Asia/Thimphu [321] => Asia/Tokyo [322] => Asia/Tomsk [323] => Asia/Ujung_Pandang [324] => Asia/Ulaanbaatar [325] => Asia/Ulan_Bator [326] => Asia/Urumqi [327] => Asia/Ust-Nera [328] => Asia/Vientiane [329] => Asia/Vladivostok [330] => Asia/Yakutsk [331] => Asia/Yangon [332] => Asia/Yekaterinburg [333] => Asia/Yerevan [334] => Atlantic/Azores [335] => Atlantic/Bermuda [336] => Atlantic/Canary [337] => Atlantic/Cape_Verde [338] => Atlantic/Faeroe [339] => Atlantic/Faroe [340] => Atlantic/Jan_Mayen [341] => Atlantic/Madeira [342] => Atlantic/Reykjavik [343] => Atlantic/South_Georgia [344] => Atlantic/St_Helena [345] => Atlantic/Stanley [346] => Australia/ACT [347] => Australia/Adelaide [348] => Australia/Brisbane [349] => Australia/Broken_Hill [350] => Australia/Canberra [351] => Australia/Currie [352] => Australia/Darwin [353] => Australia/Eucla [354] => Australia/Hobart [355] => Australia/LHI [356] => Australia/Lindeman [357] => Australia/Lord_Howe [358] => Australia/Melbourne [359] => Australia/North [360] => Australia/NSW [361] => Australia/Perth [362] => Australia/Queensland [363] => Australia/South [364] => Australia/Sydney [365] => Australia/Tasmania [366] => Australia/Victoria [367] => Australia/West [368] => Australia/Yancowinna [369] => Brazil/Acre [370] => Brazil/DeNoronha [371] => Brazil/East [372] => Brazil/West [373] => Canada/Atlantic [374] => Canada/Central [375] => Canada/Eastern [376] => Canada/Mountain [377] => Canada/Newfoundland [378] => Canada/Pacific [379] => Canada/Saskatchewan [380] => Canada/Yukon [381] => CET [382] => Chile/Continental [383] => Chile/EasterIsland [384] => CST6CDT [385] => Cuba [386] => EET [387] => Egypt [388] => Eire [389] => EST [390] => EST5EDT [391] => Etc/GMT [392] => Etc/GMT+0 [393] => Etc/GMT+1 [394] => Etc/GMT+10 [395] => Etc/GMT+11 [396] => Etc/GMT+12 [397] => Etc/GMT+2 [398] => Etc/GMT+3 [399] => Etc/GMT+4 [400] => Etc/GMT+5 [401] => Etc/GMT+6 [402] => Etc/GMT+7 [403] => Etc/GMT+8 [404] => Etc/GMT+9 [405] => Etc/GMT-0 [406] => Etc/GMT-1 [407] => Etc/GMT-10 [408] => Etc/GMT-11 [409] => Etc/GMT-12 [410] => Etc/GMT-13 [411] => Etc/GMT-14 [412] => Etc/GMT-2 [413] => Etc/GMT-3 [414] => Etc/GMT-4 [415] => Etc/GMT-5 [416] => Etc/GMT-6 [417] => Etc/GMT-7 [418] => Etc/GMT-8 [419] => Etc/GMT-9 [420] => Etc/GMT0 [421] => Etc/Greenwich [422] => Etc/UCT [423] => Etc/Universal [424] => Etc/UTC [425] => Etc/Zulu [426] => Europe/Amsterdam [427] => Europe/Andorra [428] => Europe/Astrakhan [429] => Europe/Athens [430] => Europe/Belfast [431] => Europe/Belgrade [432] => Europe/Berlin [433] => Europe/Bratislava [434] => Europe/Brussels [435] => Europe/Bucharest [436] => Europe/Budapest [437] => Europe/Busingen [438] => Europe/Chisinau [439] => Europe/Copenhagen [440] => Europe/Dublin [441] => Europe/Gibraltar [442] => Europe/Guernsey [443] => Europe/Helsinki [444] => Europe/Isle_of_Man [445] => Europe/Istanbul [446] => Europe/Jersey [447] => Europe/Kaliningrad [448] => Europe/Kiev [449] => Europe/Kirov [450] => Europe/Kyiv [451] => Europe/Lisbon [452] => Europe/Ljubljana [453] => Europe/London [454] => Europe/Luxembourg [455] => Europe/Madrid [456] => Europe/Malta [457] => Europe/Mariehamn [458] => Europe/Minsk [459] => Europe/Monaco [460] => Europe/Moscow [461] => Europe/Nicosia [462] => Europe/Oslo [463] => Europe/Paris [464] => Europe/Podgorica [465] => Europe/Prague [466] => Europe/Riga [467] => Europe/Rome [468] => Europe/Samara [469] => Europe/San_Marino [470] => Europe/Sarajevo [471] => Europe/Saratov [472] => Europe/Simferopol [473] => Europe/Skopje [474] => Europe/Sofia [475] => Europe/Stockholm [476] => Europe/Tallinn [477] => Europe/Tirane [478] => Europe/Tiraspol [479] => Europe/Ulyanovsk [480] => Europe/Uzhgorod [481] => Europe/Vaduz [482] => Europe/Vatican [483] => Europe/Vienna [484] => Europe/Vilnius [485] => Europe/Volgograd [486] => Europe/Warsaw [487] => Europe/Zagreb [488] => Europe/Zaporozhye [489] => Europe/Zurich [490] => Factory [491] => GB [492] => GB-Eire [493] => GMT [494] => GMT+0 [495] => GMT-0 [496] => GMT0 [497] => Greenwich [498] => Hongkong [499] => HST [500] => Iceland [501] => Indian/Antananarivo [502] => Indian/Chagos [503] => Indian/Christmas [504] => Indian/Cocos [505] => Indian/Comoro [506] => Indian/Kerguelen [507] => Indian/Mahe [508] => Indian/Maldives [509] => Indian/Mauritius [510] => Indian/Mayotte [511] => Indian/Reunion [512] => Iran [513] => Israel [514] => Jamaica [515] => Japan [516] => Kwajalein [517] => Libya [518] => MET [519] => Mexico/BajaNorte [520] => Mexico/BajaSur [521] => Mexico/General [522] => MST [523] => MST7MDT [524] => Navajo [525] => NZ [526] => NZ-CHAT [527] => Pacific/Apia [528] => Pacific/Auckland [529] => Pacific/Bougainville [530] => Pacific/Chatham [531] => Pacific/Chuuk [532] => Pacific/Easter [533] => Pacific/Efate [534] => Pacific/Enderbury [535] => Pacific/Fakaofo [536] => Pacific/Fiji [537] => Pacific/Funafuti [538] => Pacific/Galapagos [539] => Pacific/Gambier [540] => Pacific/Guadalcanal [541] => Pacific/Guam [542] => Pacific/Honolulu [543] => Pacific/Johnston [544] => Pacific/Kanton [545] => Pacific/Kiritimati [546] => Pacific/Kosrae [547] => Pacific/Kwajalein [548] => Pacific/Majuro [549] => Pacific/Marquesas [550] => Pacific/Midway [551] => Pacific/Nauru [552] => Pacific/Niue [553] => Pacific/Norfolk [554] => Pacific/Noumea [555] => Pacific/Pago_Pago [556] => Pacific/Palau [557] => Pacific/Pitcairn [558] => Pacific/Pohnpei [559] => Pacific/Ponape [560] => Pacific/Port_Moresby [561] => Pacific/Rarotonga [562] => Pacific/Saipan [563] => Pacific/Samoa [564] => Pacific/Tahiti [565] => Pacific/Tarawa [566] => Pacific/Tongatapu [567] => Pacific/Truk [568] => Pacific/Wake [569] => Pacific/Wallis [570] => Pacific/Yap [571] => Poland [572] => Portugal [573] => PRC [574] => PST8PDT [575] => ROC [576] => ROK [577] => Singapore [578] => Turkey [579] => UCT [580] => Universal [581] => US/Alaska [582] => US/Aleutian [583] => US/Arizona [584] => US/Central [585] => US/East-Indiana [586] => US/Eastern [587] => US/Hawaii [588] => US/Indiana-Starke [589] => US/Michigan [590] => US/Mountain [591] => US/Pacific [592] => US/Samoa [593] => UTC [594] => W-SU [595] => WET [596] => Zulu )
5 · countryCode
<? $timezoneGroup = DateTimeZone::PER_COUNTRY; $countryCode = "US"; $return = timezone_identifiers_list($timezoneGroup, $countryCode); print_r($return);
Array ( [0] => America/Adak [1] => America/Anchorage [2] => America/Boise [3] => America/Chicago [4] => America/Denver [5] => America/Detroit [6] => America/Indiana/Indianapolis [7] => America/Indiana/Knox [8] => America/Indiana/Marengo [9] => America/Indiana/Petersburg [10] => America/Indiana/Tell_City [11] => America/Indiana/Vevay [12] => America/Indiana/Vincennes [13] => America/Indiana/Winamac [14] => America/Juneau [15] => America/Kentucky/Louisville [16] => America/Kentucky/Monticello [17] => America/Los_Angeles [18] => America/Menominee [19] => America/Metlakatla [20] => America/New_York [21] => America/Nome [22] => America/North_Dakota/Beulah [23] => America/North_Dakota/Center [24] => America/North_Dakota/New_Salem [25] => America/Phoenix [26] => America/Sitka [27] => America/Yakutat [28] => Pacific/Honolulu )
Links
Date / Time
- checkdate
- date
- date_add
- date_create
- date_create_from_format
- date_create_immutable
- date_create_immutable_from_format
- date_date_set
- date_default_timezone_get
- date_default_timezone_set
- date_diff
- date_format
- date_get_last_errors
- date_interval_create_from_date_string
- date_interval_format
- date_isodate_set
- date_modify
- date_offset_get
- date_parse
- date_parse_from_format
- date_sub
- date_sun_info
- date_sunrise
- date_sunset
- date_time_set
- date_timestamp_get
- date_timestamp_set
- date_timezone_get
- date_timezone_set
- getdate
- gettimeofday
- gmdate
- gmmktime
- gmstrftime
- idate
- localtime
- microtime
- mktime
- strftime
- strptime
- strtotime
- time
- timezone_abbreviations_list
- timezone_location_get
- timezone_name_from_abbr
- timezone_name_get
- timezone_offset_get
- timezone_open
- timezone_transitions_get
- timezone_version_get