(PHP 5 >= 5.2.0, PHP 7, PHP 8)
时区表示。
$timestampBegin
= PHP_INT_MIN
, int $timestampEnd
= PHP_INT_MAX
): array|falseDateTimeZone::AFRICA
int
非洲时区。
DateTimeZone::AMERICA
int
美洲时区。
DateTimeZone::ANTARCTICA
int
南极洲时区。
DateTimeZone::ARCTIC
int
北极时区。
DateTimeZone::ASIA
int
亚洲时区。
DateTimeZone::ATLANTIC
int
大西洋时区。
DateTimeZone::AUSTRALIA
int
澳洲时区。
DateTimeZone::EUROPE
int
欧洲时区。
DateTimeZone::INDIAN
int
印度洋(Indian)时区。
DateTimeZone::PACIFIC
int
太平洋时区。
DateTimeZone::UTC
int
UTC 时区。
DateTimeZone::ALL
int
所有时区。
DateTimeZone::ALL_WITH_BC
int
所有时区,包含向后兼容。
DateTimeZone::PER_COUNTRY
int
每个国家的时区。
版本 | 说明 |
---|---|
8.4.0 | 类常量现已类型化。 |