Date/Time
在线手册:中文 英文
PHP手册

所支持的时区列表

Table of Contents

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

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

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


Date/Time
在线手册:中文 英文
PHP手册
PHP手册 - N: 所支持的时区列表

用户评论:

Anonymous (09-Apr-2012 11:09)

Oh my god! According to PHP developers the whole lot of New Zealand fits in Pacific/Auckland . :)

Anonymous (08-Apr-2012 07:37)

Wonder where did you assign country of New Zealand?
Found hardly livable places, example: Atlantic/Bermuda
But the whole country of New Zealand is missing.
Is PHP going down that fast?

Anonymous (21-Feb-2012 10:19)

Some linux dsitributions (eg: debian) use the disrio-provided zoneinfo database (/usr/share/zoneinfo). This means to get a list of timezones programmatically you can search through that directory (recursively).  This also means that zones used by other software that use this zoneinfo database (eg postgresql) will also be supported by php.