summaryrefslogtreecommitdiff
path: root/ext/intl/timezone/timezone.stub.php
blob: e8d46bde8709ba40e5da89749edbcffcd5f4788f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?php

/** @generate-class-entries */

class IntlTimeZone
{
    private function __construct() {}

    /**
     * @return int|false
     * @alias intltz_count_equivalent_ids
     */
    public static function countEquivalentIDs(string $timezoneId) {}

    /**
     * @return IntlTimeZone
     * @alias intltz_create_default
     */
    public static function createDefault() {}

    /**
     * @param IntlTimeZone|string|int|float|null $countryOrRawOffset
     * @return IntlIterator|false
     * @alias intltz_create_enumeration
     */
    public static function createEnumeration($countryOrRawOffset = null) {}

    /**
     * @return IntlTimeZone|null
     * @alias intltz_create_time_zone
     */
    public static function createTimeZone(string $timezoneId) {}

    /**
     * @return IntlIterator|false
     * @alias intltz_create_time_zone_id_enumeration
     */
    public static function createTimeZoneIDEnumeration(int $type, ?string $region = null, ?int $rawOffset = null) {}

    /**
     * @return IntlTimeZone|null
     * @alias intltz_from_date_time_zone
     */
    public static function fromDateTimeZone(DateTimeZone $timezone) {}

    /**
     * @param bool $isSystemId
     * @return string|false
     * @alias intltz_get_canonical_id
     */
    public static function getCanonicalID(string $timezoneId, &$isSystemId = null) {}

    /**
     * @return string|false
     * @alias intltz_get_display_name
     */
    public function getDisplayName(bool $dst = false, int $style = IntlTimeZone::DISPLAY_LONG, ?string $locale = null) {}

    /**
     * @return int
     * @alias intltz_get_dst_savings
     */
    public function getDSTSavings() {}

    /**
     * @return string|false
     * @alias intltz_get_equivalent_id
     */
    public static function getEquivalentID(string $timezoneId, int $offset) {}

    /**
     * @return int|false
     * @alias intltz_get_error_code
     */
    public function getErrorCode() {}

    /**
     * @return string|false
     * @alias intltz_get_error_message
     */
    public function getErrorMessage() {}

    /**
     * @return IntlTimeZone
     * @alias intltz_get_gmt
     */
    public static function getGMT() {}

    /**
     * @return string|false
     * @alias intltz_get_id
     */
    public function getID() {}

    /**
     * @param int $rawOffset
     * @param int $dstOffset
     * @return bool
     * @alias intltz_get_offset
     */
    public function getOffset(float $timestamp, bool $local, &$rawOffset, &$dstOffset) {}

    /**
     * @return int
     * @alias intltz_get_raw_offset
     */
    public function getRawOffset() {}

    /**
     * @return string|false
     * @alias intltz_get_region
     */
    public static function getRegion(string $timezoneId) {}

    /**
     * @return string|false
     * @alias intltz_get_tz_data_version
     */
    public static function getTZDataVersion() {}

    /**
     * @return IntlTimeZone
     * @alias intltz_get_unknown
     */
    public static function getUnknown() {}

#if U_ICU_VERSION_MAJOR_NUM >= 52
    /**
     * @return string|false
     * @alias intltz_get_windows_id
     */
    public static function getWindowsID(string $timezoneId) {}

    /**
     * @return string|false
     * @alias intltz_get_id_for_windows_id
     */
    public static function getIDForWindowsID(string $timezoneId, ?string $region = null) {}
#endif
    /**
     * @return bool
     * @alias intltz_has_same_rules
     */
    public function hasSameRules(IntlTimeZone $other) {}

    /**
     * @return DateTimeZone|false
     * @alias intltz_to_date_time_zone
     */
    public function toDateTimeZone() {}

    /**
     * @return bool
     * @alias intltz_use_daylight_time
     */
    public function useDaylightTime() {}
}