©
Ce document utilise Manuel du site Web PHP chinois Libérer
America/Adak | America/Anchorage | America/Anguilla | America/Antigua |
America/Araguaina | America/Argentina/Buenos_Aires | America/Argentina/Catamarca | America/Argentina/ComodRivadavia |
America/Argentina/Cordoba | America/Argentina/Jujuy | America/Argentina/La_Rioja | America/Argentina/Mendoza |
America/Argentina/Rio_Gallegos | America/Argentina/Salta | America/Argentina/San_Juan | America/Argentina/San_Luis |
America/Argentina/Tucuman | America/Argentina/Ushuaia | America/Aruba | America/Asuncion |
America/Atikokan | America/Atka | America/Bahia | America/Bahia_Banderas |
America/Barbados | America/Belem | America/Belize | America/Blanc-Sablon |
America/Boa_Vista | America/Bogota | America/Boise | America/Buenos_Aires |
America/Cambridge_Bay | America/Campo_Grande | America/Cancun | America/Caracas |
America/Catamarca | America/Cayenne | America/Cayman | America/Chicago |
America/Chihuahua | America/Coral_Harbour | America/Cordoba | America/Costa_Rica |
America/Creston | America/Cuiaba | America/Curacao | America/Danmarkshavn |
America/Dawson | America/Dawson_Creek | America/Denver | America/Detroit |
America/Dominica | America/Edmonton | America/Eirunepe | America/El_Salvador |
America/Ensenada | America/Fort_Nelson | America/Fort_Wayne | America/Fortaleza |
America/Glace_Bay | America/Godthab | America/Goose_Bay | America/Grand_Turk |
America/Grenada | America/Guadeloupe | America/Guatemala | America/Guayaquil |
America/Guyana | America/Halifax | America/Havana | America/Hermosillo |
America/Indiana/Indianapolis | America/Indiana/Knox | America/Indiana/Marengo | America/Indiana/Petersburg |
America/Indiana/Tell_City | America/Indiana/Vevay | America/Indiana/Vincennes | America/Indiana/Winamac |
America/Indianapolis | America/Inuvik | America/Iqaluit | America/Jamaica |
America/Jujuy | America/Juneau | America/Kentucky/Louisville | America/Kentucky/Monticello |
America/Knox_IN | America/Kralendijk | America/La_Paz | America/Lima |
America/Los_Angeles | America/Louisville | America/Lower_Princes | America/Maceio |
America/Managua | America/Manaus | America/Marigot | America/Martinique |
America/Matamoros | America/Mazatlan | America/Mendoza | America/Menominee |
America/Merida | America/Metlakatla | America/Mexico_City | America/Miquelon |
America/Moncton | America/Monterrey | America/Montevideo | America/Montreal |
America/Montserrat | America/Nassau | America/New_York | America/Nipigon |
America/Nome | America/Noronha | America/North_Dakota/Beulah | America/North_Dakota/Center |
America/North_Dakota/New_Salem | America/Ojinaga | America/Panama | America/Pangnirtung |
America/Paramaribo | America/Phoenix | America/Port-au-Prince | America/Port_of_Spain |
America/Porto_Acre | America/Porto_Velho | America/Puerto_Rico | America/Rainy_River |
America/Rankin_Inlet | America/Recife | America/Regina | America/Resolute |
America/Rio_Branco | America/Rosario | America/Santa_Isabel | America/Santarem |
America/Santiago | America/Santo_Domingo | America/Sao_Paulo | America/Scoresbysund |
America/Shiprock | America/Sitka | America/St_Barthelemy | America/St_Johns |
America/St_Kitts | America/St_Lucia | America/St_Thomas | America/St_Vincent |
America/Swift_Current | America/Tegucigalpa | America/Thule | America/Thunder_Bay |
America/Tijuana | America/Toronto | America/Tortola | America/Vancouver |
America/Virgin | America/Whitehorse | America/Winnipeg | America/Yakutat |
America/Yellowknife |
[#1] orem dot rodrigo at gmail dot com [2015-03-31 18:57:42]
Mirai Densetsu is wrong by saying that "America/Sao_Paulo" timezone does not exist and should be changed to "America/Brasilia".
This list is based on "Time Zone Database", maintained by Internet Assigned Numbers Authority (IANA). The location part of the name, accordingly to the naming convention, uses the "most populous city in a region to represent the entire time zone, although other cities may be selected if they are more widely known or result in a less ambiguous name".
It does not strictly consider local political divisions, because they are subject to change more than names of large cities.
This suggestion does not proceed.
[#2] abc at ed48 dot com [2014-05-26 14:08:34]
<?php
// $lang = 'pt';
$lang = 'en';
if (function_exists("timezone_identifiers_list"))
{
$arr_timez_id_lst4 = DateTimeZone::listIdentifiers(DateTimeZone::AMERICA);
$pt = 'Lista dos identificadores: <br><br>';
$en = 'Timezone identifiers list: <br><br>';
echo $$lang;
echo '<form id="form4" name="form4" method="post" action=""><select name="select">';
foreach( $arr_timez_id_lst4 as $timz4)
{
echo '<option value="' . $timz4 . '">' . $timz4 . '</option>';
}
echo '</select></form>';
}
else
{
$en = 'FUNCTION NOT IMPLEMENTED ON THIS PLATFORM!';
$pt = 'FUN??O N?O DEFINIDA PARA ESTE AMBIENTE!';
echo '<span style="color:#039;font-size:18px;">' . $$lang . '</span>';
}
?>
[#3] php at firstnetimpressions dot com [2014-03-24 01:35:29]
I give the folks in the USA the benefit of the doubt in that they know their own time zone and whether or not to use daylight savings time. The whole city list can be boiled down to just fourteen entries (including Hawaii and Puerto Rico).
<?php
// Timezone suggestions from PHP CookBook By Adam Trachtenberg
// and David Sklar Table 3-5 zoneinfo zones
$zones = array();
$zones['Pacific/Honolulu'] = 'Hawaii-Aleutian Standard Time (HAST)';
$zones['US/Aleutian'] = 'Hawaii-Aleutian with Daylight Savings Time (HADT)';
$zones['Etc/GMT+9'] = 'Alaska Standard Time (AKST)';
$zones['America/Anchorage'] = 'Alaska with Daylight Savings Time (AKDT)';
$zones['America/Dawson_Creek'] = 'Pacific Standard Time (PST)';
$zones['PST8PDT'] = 'Pacific with Daylight Savings Time (PDT)';
$zones['MST'] = 'Mountain Standard Time (MST)';
$zones['MST7MDT'] = 'Mountain with Daylight Savings Time (MDT)';
$zones['Canada/Saskatchewan'] = 'Central Standard Time (CST)';
$zones['CST6CDT'] = 'Central with Daylight Savings Time (CDT)';
$zones['EST'] = 'Eastern Standard Time (EST)';
$zones['EST5EDT'] = 'Eastern with Daylight Savings Time (EDT)';
$zones['America/Puerto_Rico'] = 'Atlantic Standard Time (AST)';
$zones['America/Halifax'] = 'Atlantic with Daylight Savings Time (ADT)';
?>
[#4] scsjcr [2014-02-20 00:39:59]
How is to Costa Rica? or Central America?
[#5] Mirai Densetsu [2014-02-10 17:22:35]
At Brazil, note that the Brazilian official timezone is wrongly described as "America/Sao_Paulo", when it should be "America/Brasilia".
The Sao Paulo timezone does not exist, since this city follow the Brasilia official timezone (BRT or BRST).
[#6] eslindsey at gmail dot com [2014-01-20 06:24:34]
For the United States:
Eastern ........... America/New_York
Central ........... America/Chicago
Mountain .......... America/Denver
Mountain no DST ... America/Phoenix
Pacific ........... America/Los_Angeles
Alaska ............ America/Anchorage
Hawaii ............ America/Adak
Hawaii no DST ..... Pacific/Honolulu
Source: http://stackoverflow.com/questions/4989209/list-of-us-time-zones-for-php-to-use
[#7] cjacunad at gmail dot com [2008-09-18 16:28:35]
You can set a default time zone for your server from the configuration file (php.ini) at the line:
[Date]
; Defines the default timezone used by the date functions
date.timezone = America/New_York
[#8] kapahala11 at yahoo dot com [2007-06-11 18:48:17]
Note that "America" means "the continents of North and South America, including the Caribbean islands". It does *not* mean "The United States Of America".
If you're looking for the Hawaii timezone, you'll find it in Pacific/Honolulu (not America/Honolulu).