php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
timezone.stub.php
Go to the documentation of this file.
1<?php
2
4
7{
9 public const int DISPLAY_SHORT = UNKNOWN;
11 public const int DISPLAY_LONG = UNKNOWN;
12
14 public const int DISPLAY_SHORT_GENERIC = UNKNOWN;
16 public const int DISPLAY_LONG_GENERIC = UNKNOWN;
18 public const int DISPLAY_SHORT_GMT = UNKNOWN;
20 public const int DISPLAY_LONG_GMT = UNKNOWN;
22 public const int DISPLAY_SHORT_COMMONLY_USED = UNKNOWN;
24 public const int DISPLAY_GENERIC_LOCATION = UNKNOWN;
25
27 public const int TYPE_ANY = UNKNOWN;
29 public const int TYPE_CANONICAL = UNKNOWN;
31 public const int TYPE_CANONICAL_LOCATION = UNKNOWN;
32
33 private function __construct() {}
34
39 public static function countEquivalentIDs(string $timezoneId): int|false {}
40
46
52 public static function createEnumeration($countryOrRawOffset = null): IntlIterator|false {}
53
58 public static function createTimeZone(string $timezoneId): ?IntlTimeZone {}
59
64 public static function createTimeZoneIDEnumeration(int $type, ?string $region = null, ?int $rawOffset = null): IntlIterator|false {}
65
70 public static function fromDateTimeZone(DateTimeZone $timezone): ?IntlTimeZone {}
71
77 public static function getCanonicalID(string $timezoneId, &$isSystemId = null): string|false {}
78
83 public function getDisplayName(bool $dst = false, int $style = IntlTimeZone::DISPLAY_LONG, ?string $locale = null): string|false {}
84
89 public function getDSTSavings(): int {}
90
95 public static function getEquivalentID(string $timezoneId, int $offset): string|false {}
96
101 public function getErrorCode(): int|false {}
102
107 public function getErrorMessage(): string|false {}
108
113 public static function getGMT(): IntlTimeZone {}
114
115#if U_ICU_VERSION_MAJOR_NUM >= 74
119 public static function getIanaID(string $timezoneId): string|false {}
120#endif
121
126 public function getID(): string|false {}
127
134 public function getOffset(float $timestamp, bool $local, &$rawOffset, &$dstOffset): bool {}
135
140 public function getRawOffset(): int {}
141
146 public static function getRegion(string $timezoneId): string|false {}
147
152 public static function getTZDataVersion(): string|false {}
153
158 public static function getUnknown(): IntlTimeZone {}
159
160#if U_ICU_VERSION_MAJOR_NUM >= 52
165 public static function getWindowsID(string $timezoneId): string|false {}
166
171 public static function getIDForWindowsID(string $timezoneId, ?string $region = null): string|false {}
172#endif
177 public function hasSameRules(IntlTimeZone $other): bool {}
178
184
189 public function useDaylightTime(): bool {}
190}
static createEnumeration($countryOrRawOffset=null)
hasSameRules(IntlTimeZone $other)
static getUnknown()
static createTimeZone(string $timezoneId)
static getIDForWindowsID(string $timezoneId, ?string $region=null)
const int DISPLAY_SHORT_GMT
static createDefault()
static getRegion(string $timezoneId)
const int TYPE_CANONICAL
static getTZDataVersion()
const int DISPLAY_GENERIC_LOCATION
const int DISPLAY_SHORT_GENERIC
static getWindowsID(string $timezoneId)
getOffset(float $timestamp, bool $local, &$rawOffset, &$dstOffset)
const int DISPLAY_LONG_GMT
const int DISPLAY_SHORT
const int DISPLAY_SHORT_COMMONLY_USED
getDisplayName(bool $dst=false, int $style=IntlTimeZone::DISPLAY_LONG, ?string $locale=null)
static countEquivalentIDs(string $timezoneId)
static getCanonicalID(string $timezoneId, &$isSystemId=null)
const int DISPLAY_LONG_GENERIC
static getEquivalentID(string $timezoneId, int $offset)
const int DISPLAY_LONG
const int TYPE_ANY
const int TYPE_CANONICAL_LOCATION
static getIanaID(string $timezoneId)
static createTimeZoneIDEnumeration(int $type, ?string $region=null, ?int $rawOffset=null)
static fromDateTimeZone(DateTimeZone $timezone)
foreach($dp as $el) foreach( $dp as $el) if( $pass2< 2) echo ""
function(EX_VAR(opline->result.var))