array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'class.datetimezone.php', 1 => 'DateTimeZone', ), 'up' => array ( 0 => 'book.datetime.php', 1 => '日期/时间', ), 'prev' => array ( 0 => 'datetime.wakeup.php', 1 => 'DateTime::__wakeup', ), 'next' => array ( 0 => 'datetimezone.construct.php', 1 => 'DateTimeZone::__construct', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/datetime/datetimezone.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.datetimezone.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.2.0, PHP 7, PHP 8)
时区表示。
$timestampBegin
= PHP_INT_MIN
, int $timestampEnd
= PHP_INT_MAX
): array|falseDateTimeZone::AFRICA
非洲时区。
DateTimeZone::AMERICA
美洲时区。
DateTimeZone::ANTARCTICA
南极洲时区。
DateTimeZone::ARCTIC
北极时区。
DateTimeZone::ASIA
亚洲时区。
DateTimeZone::ATLANTIC
大西洋时区。
DateTimeZone::AUSTRALIA
澳洲时区。
DateTimeZone::EUROPE
欧洲时区。
DateTimeZone::INDIAN
印度洋(Indian)时区。
DateTimeZone::PACIFIC
太平洋时区。
DateTimeZone::UTC
UTC 时区。
DateTimeZone::ALL
所有时区。
DateTimeZone::ALL_WITH_BC
所有时区,包含向后兼容。
DateTimeZone::PER_COUNTRY
每个国家的时区。