请不要使用此处列出的任何时区(UTC除外),它们仅出于向后兼容的原因而存在,并且可能会导致错误的行为。此外,这些时区可能会随时从IANA时区数据库中删除。
如果您忽略上述警告,请另请注意,为PHP的时区支持提供IANA时区数据库使用POSIX样式的符号,这导致Etc/GMT+n
和Etc/GMT-n
时区与常用用法相反。
例如,在中国和西澳大利亚(以及其他地方)使用的比GMT快8小时的时区,在此数据库中实际上是Etc/GMT-8
,而不是您通常预期的Etc/GMT+8
。
再次强调,强烈建议您使用您所在位置的正确时区,例如上述示例中的Asia/Shanghai
或Australia/Perth
。
Africa/Asmera | Africa/Timbuktu | America/Argentina/ComodRivadavia | America/Atka |
America/Buenos_Aires | America/Catamarca | America/Coral_Harbour | America/Cordoba |
America/Ensenada | America/Fort_Wayne | America/Godthab | America/Indianapolis |
America/Jujuy | America/Knox_IN | America/Louisville | America/Mendoza |
America/Montreal | America/Nipigon | America/Pangnirtung | America/Porto_Acre |
America/Rainy_River | America/Rosario | America/Santa_Isabel | America/Shiprock |
America/Thunder_Bay | America/Virgin | America/Yellowknife | Antarctica/South_Pole |
Asia/Ashkhabad | Asia/Calcutta | Asia/Choibalsan | Asia/Chongqing |
Asia/Chungking | Asia/Dacca | Asia/Harbin | Asia/Istanbul |
Asia/Kashgar | Asia/Katmandu | Asia/Macao | Asia/Rangoon |
Asia/Saigon | Asia/Tel_Aviv | Asia/Thimbu | Asia/Ujung_Pandang |
Asia/Ulan_Bator | Atlantic/Faeroe | Atlantic/Jan_Mayen | Australia/ACT |
Australia/Canberra | Australia/Currie | Australia/LHI | Australia/North |
Australia/NSW | Australia/Queensland | Australia/South | Australia/Tasmania |
Australia/Victoria | Australia/West | Australia/Yancowinna | Brazil/Acre |
Brazil/DeNoronha | Brazil/East | Brazil/West | Canada/Atlantic |
Canada/Central | Canada/Eastern | Canada/Mountain | Canada/Newfoundland |
Canada/Pacific | Canada/Saskatchewan | Canada/Yukon | CET |
Chile/Continental | Chile/EasterIsland | CST6CDT | Cuba |
EET | Egypt | Eire | EST |
EST5EDT | Etc/GMT | Etc/GMT+0 | Etc/GMT+1 |
Etc/GMT+10 | Etc/GMT+11 | Etc/GMT+12 | Etc/GMT+2 |
Etc/GMT+3 | Etc/GMT+4 | Etc/GMT+5 | Etc/GMT+6 |
Etc/GMT+7 | Etc/GMT+8 | Etc/GMT+9 | Etc/GMT-0 |
Etc/GMT-1 | Etc/GMT-10 | Etc/GMT-11 | Etc/GMT-12 |
Etc/GMT-13 | Etc/GMT-14 | Etc/GMT-2 | Etc/GMT-3 |
Etc/GMT-4 | Etc/GMT-5 | Etc/GMT-6 | Etc/GMT-7 |
Etc/GMT-8 | Etc/GMT-9 | Etc/GMT0 | Etc/Greenwich |
Etc/UCT | Etc/Universal | Etc/UTC | Etc/Zulu |
Europe/Belfast | Europe/Kiev | Europe/Nicosia | Europe/Tiraspol |
Europe/Uzhgorod | Europe/Zaporozhye | Factory | GB |
GB-Eire | GMT | GMT+0 | GMT-0 |
GMT0 | Greenwich | Hongkong | HST |
Iceland | Iran | Israel | Jamaica |
Japan | Kwajalein | Libya | MET |
Mexico/BajaNorte | Mexico/BajaSur | Mexico/General | MST |
MST7MDT | Navajo | NZ | NZ-CHAT |
Pacific/Enderbury | Pacific/Johnston | Pacific/Ponape | Pacific/Samoa |
Pacific/Truk | Pacific/Yap | Poland | Portugal |
PRC | PST8PDT | ROC | ROK |
Singapore | Turkey | UCT | Universal |
US/Alaska | US/Aleutian | US/Arizona | US/Central |
US/East-Indiana | US/Eastern | US/Hawaii | US/Indiana-Starke |
US/Michigan | US/Mountain | US/Pacific | US/Samoa |
UTC | W-SU | WET | Zulu |