php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
DateTimeZone Class Reference

Public Member Functions

 __construct (string $timezone)
 
 getName ()
 
 getOffset (DateTimeInterface $datetime)
 
 getTransitions (int $timestampBegin=PHP_INT_MIN, int $timestampEnd=PHP_INT_MAX)
 
 getLocation ()
 
 __serialize ()
 
 __unserialize (array $data)
 
 __wakeup ()
 

Static Public Member Functions

static listAbbreviations ()
 
static listIdentifiers (int $timezoneGroup=DateTimeZone::ALL, ?string $countryCode=null)
 
static __set_state (array $array)
 

Data Fields

const int AFRICA = UNKNOWN
 
const int AMERICA = UNKNOWN
 
const int ANTARCTICA = UNKNOWN
 
const int ARCTIC = UNKNOWN
 
const int ASIA = UNKNOWN
 
const int ATLANTIC = UNKNOWN
 
const int AUSTRALIA = UNKNOWN
 
const int EUROPE = UNKNOWN
 
const int INDIAN = UNKNOWN
 
const int PACIFIC = UNKNOWN
 
const int UTC = UNKNOWN
 
const int ALL = UNKNOWN
 
const int ALL_WITH_BC = UNKNOWN
 
const int PER_COUNTRY = UNKNOWN
 

Detailed Description

Definition at line 559 of file php_date.stub.php.

Constructor & Destructor Documentation

◆ __construct()

DateTimeZone::__construct ( string $timezone)

Definition at line 590 of file php_date.stub.php.

Member Function Documentation

◆ __serialize()

DateTimeZone::__serialize ( )

Definition at line 632 of file php_date.stub.php.

◆ __set_state()

static DateTimeZone::__set_state ( array $array)
static

@tentative-return-type

Definition at line 640 of file php_date.stub.php.

◆ __unserialize()

DateTimeZone::__unserialize ( array $data)

Definition at line 634 of file php_date.stub.php.

◆ __wakeup()

DateTimeZone::__wakeup ( )

@tentative-return-type

Definition at line 637 of file php_date.stub.php.

◆ getLocation()

DateTimeZone::getLocation ( )
Returns
array<string, float|string>|false @tentative-return-type @alias timezone_location_get

Definition at line 616 of file php_date.stub.php.

◆ getName()

DateTimeZone::getName ( )

@tentative-return-type @alias timezone_name_get

Definition at line 596 of file php_date.stub.php.

◆ getOffset()

DateTimeZone::getOffset ( DateTimeInterface $datetime)

@tentative-return-type @alias timezone_offset_get

Definition at line 602 of file php_date.stub.php.

◆ getTransitions()

DateTimeZone::getTransitions ( int $timestampBegin = PHP_INT_MIN,
int $timestampEnd = PHP_INT_MAX )
Returns
array<int, array>|false @tentative-return-type @alias timezone_transitions_get

Definition at line 609 of file php_date.stub.php.

◆ listAbbreviations()

static DateTimeZone::listAbbreviations ( )
static
Returns
array<string, array> @tentative-return-type @alias timezone_abbreviations_list

Definition at line 623 of file php_date.stub.php.

◆ listIdentifiers()

static DateTimeZone::listIdentifiers ( int $timezoneGroup = DateTimeZone::ALL,
?string $countryCode = null )
static
Returns
array<int, string> @tentative-return-type @alias timezone_identifiers_list

Definition at line 630 of file php_date.stub.php.

Field Documentation

◆ AFRICA

const int DateTimeZone::AFRICA = UNKNOWN

@cvalue PHP_DATE_TIMEZONE_GROUP_AFRICA

Definition at line 562 of file php_date.stub.php.

◆ ALL

const int DateTimeZone::ALL = UNKNOWN

@cvalue PHP_DATE_TIMEZONE_GROUP_ALL

Definition at line 584 of file php_date.stub.php.

◆ ALL_WITH_BC

const int DateTimeZone::ALL_WITH_BC = UNKNOWN

@cvalue PHP_DATE_TIMEZONE_GROUP_ALL_W_BC

Definition at line 586 of file php_date.stub.php.

◆ AMERICA

const int DateTimeZone::AMERICA = UNKNOWN

@cvalue PHP_DATE_TIMEZONE_GROUP_AMERICA

Definition at line 564 of file php_date.stub.php.

◆ ANTARCTICA

const int DateTimeZone::ANTARCTICA = UNKNOWN

@cvalue PHP_DATE_TIMEZONE_GROUP_ANTARCTICA

Definition at line 566 of file php_date.stub.php.

◆ ARCTIC

const int DateTimeZone::ARCTIC = UNKNOWN

@cvalue PHP_DATE_TIMEZONE_GROUP_ARCTIC

Definition at line 568 of file php_date.stub.php.

◆ ASIA

const int DateTimeZone::ASIA = UNKNOWN

@cvalue PHP_DATE_TIMEZONE_GROUP_ASIA

Definition at line 570 of file php_date.stub.php.

◆ ATLANTIC

const int DateTimeZone::ATLANTIC = UNKNOWN

@cvalue PHP_DATE_TIMEZONE_GROUP_ATLANTIC

Definition at line 572 of file php_date.stub.php.

◆ AUSTRALIA

const int DateTimeZone::AUSTRALIA = UNKNOWN

@cvalue PHP_DATE_TIMEZONE_GROUP_AUSTRALIA

Definition at line 574 of file php_date.stub.php.

◆ EUROPE

const int DateTimeZone::EUROPE = UNKNOWN

@cvalue PHP_DATE_TIMEZONE_GROUP_EUROPE

Definition at line 576 of file php_date.stub.php.

◆ INDIAN

const int DateTimeZone::INDIAN = UNKNOWN

@cvalue PHP_DATE_TIMEZONE_GROUP_INDIAN

Definition at line 578 of file php_date.stub.php.

◆ PACIFIC

const int DateTimeZone::PACIFIC = UNKNOWN

@cvalue PHP_DATE_TIMEZONE_GROUP_PACIFIC

Definition at line 580 of file php_date.stub.php.

◆ PER_COUNTRY

const int DateTimeZone::PER_COUNTRY = UNKNOWN

@cvalue PHP_DATE_TIMEZONE_PER_COUNTRY

Definition at line 588 of file php_date.stub.php.

◆ UTC

const int DateTimeZone::UTC = UNKNOWN

@cvalue PHP_DATE_TIMEZONE_GROUP_UTC

Definition at line 582 of file php_date.stub.php.


The documentation for this class was generated from the following file: