xref: /PHP-8.0/ext/intl/timezone/timezone.stub.php (revision d6264b09)
1<?php
2
3/** @generate-function-entries */
4
5class IntlTimeZone
6{
7    private function __construct() {}
8
9    /**
10     * @return int|false
11     * @alias intltz_count_equivalent_ids
12     */
13    public static function countEquivalentIDs(string $timezoneId) {}
14
15    /**
16     * @return IntlTimeZone
17     * @alias intltz_create_default
18     */
19    public static function createDefault() {}
20
21    /**
22     * @param IntlTimeZone|string|int|float|null $countryOrRawOffset
23     * @return IntlIterator|false
24     * @alias intltz_create_enumeration
25     */
26    public static function createEnumeration($countryOrRawOffset = null) {}
27
28    /**
29     * @return IntlTimeZone|null
30     * @alias intltz_create_time_zone
31     */
32    public static function createTimeZone(string $timezoneId) {}
33
34    /**
35     * @return IntlIterator|false
36     * @alias intltz_create_time_zone_id_enumeration
37     */
38    public static function createTimeZoneIDEnumeration(int $type, ?string $region = null, ?int $rawOffset = null) {}
39
40    /**
41     * @return IntlTimeZone|null
42     * @alias intltz_from_date_time_zone
43     */
44    public static function fromDateTimeZone(DateTimeZone $timezone) {}
45
46    /**
47     * @param bool $isSystemId
48     * @return string|false
49     * @alias intltz_get_canonical_id
50     */
51    public static function getCanonicalID(string $timezoneId, &$isSystemId = null) {}
52
53    /**
54     * @return string|false
55     * @alias intltz_get_display_name
56     */
57    public function getDisplayName(bool $dst = false, int $style = IntlTimeZone::DISPLAY_LONG, ?string $locale = null) {}
58
59    /**
60     * @return int
61     * @alias intltz_get_dst_savings
62     */
63    public function getDSTSavings() {}
64
65    /**
66     * @return string|false
67     * @alias intltz_get_equivalent_id
68     */
69    public static function getEquivalentID(string $timezoneId, int $offset) {}
70
71    /**
72     * @return int|false
73     * @alias intltz_get_error_code
74     */
75    public function getErrorCode() {}
76
77    /**
78     * @return string|false
79     * @alias intltz_get_error_message
80     */
81    public function getErrorMessage() {}
82
83    /**
84     * @return IntlTimeZone
85     * @alias intltz_get_gmt
86     */
87    public static function getGMT() {}
88
89    /**
90     * @return string|false
91     * @alias intltz_get_id
92     */
93    public function getID() {}
94
95    /**
96     * @param int $rawOffset
97     * @param int $dstOffset
98     * @return bool
99     * @alias intltz_get_offset
100     */
101    public function getOffset(float $timestamp, bool $local, &$rawOffset, &$dstOffset) {}
102
103    /**
104     * @return int
105     * @alias intltz_get_raw_offset
106     */
107    public function getRawOffset() {}
108
109    /**
110     * @return string|false
111     * @alias intltz_get_region
112     */
113    public static function getRegion(string $timezoneId) {}
114
115    /**
116     * @return string|false
117     * @alias intltz_get_tz_data_version
118     */
119    public static function getTZDataVersion() {}
120
121    /**
122     * @return IntlTimeZone
123     * @alias intltz_get_unknown
124     */
125    public static function getUnknown() {}
126
127#if U_ICU_VERSION_MAJOR_NUM >= 52
128    /**
129     * @return string|false
130     * @alias intltz_get_windows_id
131     */
132    public static function getWindowsID(string $timezoneId) {}
133
134    /**
135     * @return string|false
136     * @alias intltz_get_id_for_windows_id
137     */
138    public static function getIDForWindowsID(string $timezoneId, ?string $region = null) {}
139#endif
140    /**
141     * @return bool
142     * @alias intltz_has_same_rules
143     */
144    public function hasSameRules(IntlTimeZone $other) {}
145
146    /**
147     * @return DateTimeZone|false
148     * @alias intltz_to_date_time_zone
149     */
150    public function toDateTimeZone() {}
151
152    /**
153     * @return bool
154     * @alias intltz_use_daylight_time
155     */
156    public function useDaylightTime() {}
157}
158