php教程

所支持的时区列表

Table of Contents

在这你可找到 PHP 所支持的所有时区的列表,可用于诸如 date_default_timezone_set() 等函数。

Note: 最新版的时区数据库可从 PECL 的 » timezonedb 进行安装。

Note: 基于时区数据库版本的列表 2019.2.

User Contributed Notes

Marc Moisan 28-May-2019 03:40
- Some countries are not listed at all, e.g. British Virgin Islands (Road Town), Malawi (Lilongwe), Sint Maarten (Philipsburg)

For British Virgin Islands use America/Tortola.
For Malawi use Africa/Blantyre.
For Sint Maarten use America/Lower_Princes.
Mark 07-Aug-2018 05:08
Some interesting peculiarities:

- Montreal (Quebec) is missing; use America/Toronto instead.

- Most countries are listed by their capital cities, but some are listed by their country name:
— Jamaica instead of Kingston
— Malta instead of Valletta
— Costa Rica instead of San José
— Puerto Rico instead of San Juan
— Qatar instead of Doha
...or their largest city:
— Guayaquil instead of Quito, Ecuador
— Casablanca instead of Rabat, Morocco
— Karachi instead of Islamabad, Pakistan
— Johannesburg instead of Pretoria / Bloemfontein / Cape Town, South Africa

- Some countries are not listed at all, e.g. British Virgin Islands (Road Town), Malawi (Lilongwe), Sint Maarten (Philipsburg)

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788