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

Public Member Functions

 getDisplayName (bool $dst=false, int $style=IntlTimeZone::DISPLAY_LONG, ?string $locale=null)
 
 getDSTSavings ()
 
 getErrorCode ()
 
 getErrorMessage ()
 
 getID ()
 
 getOffset (float $timestamp, bool $local, &$rawOffset, &$dstOffset)
 
 getRawOffset ()
 
 hasSameRules (IntlTimeZone $other)
 
 toDateTimeZone ()
 
 useDaylightTime ()
 

Static Public Member Functions

static countEquivalentIDs (string $timezoneId)
 
static createDefault ()
 
static createEnumeration ($countryOrRawOffset=null)
 
static createTimeZone (string $timezoneId)
 
static createTimeZoneIDEnumeration (int $type, ?string $region=null, ?int $rawOffset=null)
 
static fromDateTimeZone (DateTimeZone $timezone)
 
static getCanonicalID (string $timezoneId, &$isSystemId=null)
 
static getEquivalentID (string $timezoneId, int $offset)
 
static getGMT ()
 
static getIanaID (string $timezoneId)
 
static getRegion (string $timezoneId)
 
static getTZDataVersion ()
 
static getUnknown ()
 
static getWindowsID (string $timezoneId)
 
static getIDForWindowsID (string $timezoneId, ?string $region=null)
 

Data Fields

const int DISPLAY_SHORT = UNKNOWN
 
const int DISPLAY_LONG = UNKNOWN
 
const int DISPLAY_SHORT_GENERIC = UNKNOWN
 
const int DISPLAY_LONG_GENERIC = UNKNOWN
 
const int DISPLAY_SHORT_GMT = UNKNOWN
 
const int DISPLAY_LONG_GMT = UNKNOWN
 
const int DISPLAY_SHORT_COMMONLY_USED = UNKNOWN
 
const int DISPLAY_GENERIC_LOCATION = UNKNOWN
 
const int TYPE_ANY = UNKNOWN
 
const int TYPE_CANONICAL = UNKNOWN
 
const int TYPE_CANONICAL_LOCATION = UNKNOWN
 

Detailed Description

@generate-class-entries @not-serializable

Definition at line 6 of file timezone.stub.php.

Member Function Documentation

◆ countEquivalentIDs()

static IntlTimeZone::countEquivalentIDs ( string $timezoneId)
static

@tentative-return-type @alias intltz_count_equivalent_ids

Definition at line 39 of file timezone.stub.php.

◆ createDefault()

static IntlTimeZone::createDefault ( )
static

@tentative-return-type @alias intltz_create_default

Definition at line 45 of file timezone.stub.php.

◆ createEnumeration()

static IntlTimeZone::createEnumeration ( $countryOrRawOffset = null)
static
Parameters
IntlTimeZone | string | int | float | null$countryOrRawOffset@tentative-return-type @alias intltz_create_enumeration

Definition at line 52 of file timezone.stub.php.

◆ createTimeZone()

static IntlTimeZone::createTimeZone ( string $timezoneId)
static

@tentative-return-type @alias intltz_create_time_zone

Definition at line 58 of file timezone.stub.php.

◆ createTimeZoneIDEnumeration()

static IntlTimeZone::createTimeZoneIDEnumeration ( int $type,
?string $region = null,
?int $rawOffset = null )
static

@tentative-return-type @alias intltz_create_time_zone_id_enumeration

Definition at line 64 of file timezone.stub.php.

◆ fromDateTimeZone()

static IntlTimeZone::fromDateTimeZone ( DateTimeZone $timezone)
static

@tentative-return-type @alias intltz_from_date_time_zone

Definition at line 70 of file timezone.stub.php.

◆ getCanonicalID()

static IntlTimeZone::getCanonicalID ( string $timezoneId,
& $isSystemId = null )
static
Parameters
bool$isSystemId@tentative-return-type @alias intltz_get_canonical_id

Definition at line 77 of file timezone.stub.php.

◆ getDisplayName()

IntlTimeZone::getDisplayName ( bool $dst = false,
int $style = IntlTimeZone::DISPLAY_LONG,
?string $locale = null )

@tentative-return-type @alias intltz_get_display_name

Definition at line 83 of file timezone.stub.php.

◆ getDSTSavings()

IntlTimeZone::getDSTSavings ( )

@tentative-return-type @alias intltz_get_dst_savings

Definition at line 89 of file timezone.stub.php.

◆ getEquivalentID()

static IntlTimeZone::getEquivalentID ( string $timezoneId,
int $offset )
static

@tentative-return-type @alias intltz_get_equivalent_id

Definition at line 95 of file timezone.stub.php.

◆ getErrorCode()

IntlTimeZone::getErrorCode ( )

@tentative-return-type @alias intltz_get_error_code

Definition at line 101 of file timezone.stub.php.

◆ getErrorMessage()

IntlTimeZone::getErrorMessage ( )

@tentative-return-type @alias intltz_get_error_message

Definition at line 107 of file timezone.stub.php.

◆ getGMT()

static IntlTimeZone::getGMT ( )
static

@tentative-return-type @alias intltz_get_gmt

Definition at line 113 of file timezone.stub.php.

◆ getIanaID()

static IntlTimeZone::getIanaID ( string $timezoneId)
static

@alias intltz_get_iana_id

Definition at line 119 of file timezone.stub.php.

◆ getID()

IntlTimeZone::getID ( )

@tentative-return-type @alias intltz_get_id

Definition at line 126 of file timezone.stub.php.

◆ getIDForWindowsID()

static IntlTimeZone::getIDForWindowsID ( string $timezoneId,
?string $region = null )
static

@tentative-return-type @alias intltz_get_id_for_windows_id

Definition at line 171 of file timezone.stub.php.

◆ getOffset()

IntlTimeZone::getOffset ( float $timestamp,
bool $local,
& $rawOffset,
& $dstOffset )
Parameters
int$rawOffset
int$dstOffset@tentative-return-type @alias intltz_get_offset

Definition at line 134 of file timezone.stub.php.

◆ getRawOffset()

IntlTimeZone::getRawOffset ( )

@tentative-return-type @alias intltz_get_raw_offset

Definition at line 140 of file timezone.stub.php.

◆ getRegion()

static IntlTimeZone::getRegion ( string $timezoneId)
static

@tentative-return-type @alias intltz_get_region

Definition at line 146 of file timezone.stub.php.

◆ getTZDataVersion()

static IntlTimeZone::getTZDataVersion ( )
static

@tentative-return-type @alias intltz_get_tz_data_version

Definition at line 152 of file timezone.stub.php.

◆ getUnknown()

static IntlTimeZone::getUnknown ( )
static

@tentative-return-type @alias intltz_get_unknown

Definition at line 158 of file timezone.stub.php.

◆ getWindowsID()

static IntlTimeZone::getWindowsID ( string $timezoneId)
static

@tentative-return-type @alias intltz_get_windows_id

Definition at line 165 of file timezone.stub.php.

◆ hasSameRules()

IntlTimeZone::hasSameRules ( IntlTimeZone $other)

@tentative-return-type @alias intltz_has_same_rules

Definition at line 177 of file timezone.stub.php.

◆ toDateTimeZone()

IntlTimeZone::toDateTimeZone ( )

@tentative-return-type @alias intltz_to_date_time_zone

Definition at line 183 of file timezone.stub.php.

◆ useDaylightTime()

IntlTimeZone::useDaylightTime ( )

@tentative-return-type @alias intltz_use_daylight_time

Definition at line 189 of file timezone.stub.php.

Field Documentation

◆ DISPLAY_GENERIC_LOCATION

const int IntlTimeZone::DISPLAY_GENERIC_LOCATION = UNKNOWN

@cvalue TimeZone::GENERIC_LOCATION

Definition at line 24 of file timezone.stub.php.

◆ DISPLAY_LONG

const int IntlTimeZone::DISPLAY_LONG = UNKNOWN

@cvalue TimeZone::LONG

Definition at line 11 of file timezone.stub.php.

◆ DISPLAY_LONG_GENERIC

const int IntlTimeZone::DISPLAY_LONG_GENERIC = UNKNOWN

@cvalue TimeZone::LONG_GENERIC

Definition at line 16 of file timezone.stub.php.

◆ DISPLAY_LONG_GMT

const int IntlTimeZone::DISPLAY_LONG_GMT = UNKNOWN

@cvalue TimeZone::LONG_GMT

Definition at line 20 of file timezone.stub.php.

◆ DISPLAY_SHORT

const int IntlTimeZone::DISPLAY_SHORT = UNKNOWN

@cvalue TimeZone::SHORT

Definition at line 9 of file timezone.stub.php.

◆ DISPLAY_SHORT_COMMONLY_USED

const int IntlTimeZone::DISPLAY_SHORT_COMMONLY_USED = UNKNOWN

@cvalue TimeZone::SHORT_COMMONLY_USED

Definition at line 22 of file timezone.stub.php.

◆ DISPLAY_SHORT_GENERIC

const int IntlTimeZone::DISPLAY_SHORT_GENERIC = UNKNOWN

@cvalue TimeZone::SHORT_GENERIC

Definition at line 14 of file timezone.stub.php.

◆ DISPLAY_SHORT_GMT

const int IntlTimeZone::DISPLAY_SHORT_GMT = UNKNOWN

@cvalue TimeZone::SHORT_GMT

Definition at line 18 of file timezone.stub.php.

◆ TYPE_ANY

const int IntlTimeZone::TYPE_ANY = UNKNOWN

@cvalue UCAL_ZONE_TYPE_ANY

Definition at line 27 of file timezone.stub.php.

◆ TYPE_CANONICAL

const int IntlTimeZone::TYPE_CANONICAL = UNKNOWN

@cvalue UCAL_ZONE_TYPE_CANONICAL

Definition at line 29 of file timezone.stub.php.

◆ TYPE_CANONICAL_LOCATION

const int IntlTimeZone::TYPE_CANONICAL_LOCATION = UNKNOWN

@cvalue UCAL_ZONE_TYPE_CANONICAL_LOCATION

Definition at line 31 of file timezone.stub.php.


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