4
4
5
5
function strtotime (string $ datetime , ?int $ baseTimestamp = null ): int |false {}
6
6
7
+ /** @refcount 1 */
7
8
function date (string $ format , ?int $ timestamp = null ): string {}
8
9
9
10
function idate (string $ format , ?int $ timestamp = null ): int |false {}
10
11
12
+ /** @refcount 1 */
11
13
function gmdate (string $ format , ?int $ timestamp = null ): string {}
12
14
13
15
function mktime (
@@ -20,35 +22,66 @@ function gmmktime(
20
22
21
23
function checkdate (int $ month , int $ day , int $ year ): bool {}
22
24
23
- /** @deprecated */
25
+ /**
26
+ * @refcount 1
27
+ * @deprecated
28
+ */
24
29
function strftime (string $ format , ?int $ timestamp = null ): string |false {}
25
30
26
- /** @deprecated */
31
+ /**
32
+ * @refcount 1
33
+ * @deprecated
34
+ */
27
35
function gmstrftime (string $ format , ?int $ timestamp = null ): string |false {}
28
36
29
37
function time (): int {}
30
38
39
+ /**
40
+ * @return array<int|string, int>
41
+ * @refcount 1
42
+ */
31
43
function localtime (?int $ timestamp = null , bool $ associative = false ): array {}
32
44
45
+ /**
46
+ * @return array<int|string, int|string>
47
+ * @refcount 1
48
+ */
33
49
function getdate (?int $ timestamp = null ): array {}
34
50
51
+ /** @refcount 1 */
35
52
function date_create (string $ datetime = "now " , ?DateTimeZone $ timezone = null ): DateTime |false {}
36
53
54
+ /** @refcount 1 */
37
55
function date_create_immutable (
38
56
string $ datetime = "now " , ?DateTimeZone $ timezone = null ): DateTimeImmutable |false {}
39
57
58
+ /** @refcount 1 */
40
59
function date_create_from_format (
41
60
string $ format , string $ datetime , ?DateTimeZone $ timezone = null ): DateTime |false {}
42
61
62
+ /** @refcount 1 */
43
63
function date_create_immutable_from_format (
44
64
string $ format , string $ datetime , ?DateTimeZone $ timezone = null ): DateTimeImmutable |false {}
45
65
66
+ /**
67
+ * @return array<string, mixed>
68
+ * @refcount 1
69
+ */
46
70
function date_parse (string $ datetime ): array {}
47
71
72
+ /**
73
+ * @return array<string, mixed>
74
+ * @refcount 1
75
+ */
48
76
function date_parse_from_format (string $ format , string $ datetime ): array {}
49
77
78
+ /**
79
+ * @return array<string, int|array>|false
80
+ * @refcount 1
81
+ */
50
82
function date_get_last_errors (): array |false {}
51
83
84
+ /** @refcount 1 */
52
85
function date_format (DateTimeInterface $ object , string $ format ): string {}
53
86
54
87
function date_modify (DateTime $ object , string $ modifier ): DateTime |false {}
@@ -57,12 +90,14 @@ function date_add(DateTime $object, DateInterval $interval): DateTime {}
57
90
58
91
function date_sub (DateTime $ object , DateInterval $ interval ): DateTime {}
59
92
93
+ /** @refcount 1 */
60
94
function date_timezone_get (DateTimeInterface $ object ): DateTimeZone |false {}
61
95
62
96
function date_timezone_set (DateTime $ object , DateTimeZone $ timezone ): DateTime {}
63
97
64
98
function date_offset_get (DateTimeInterface $ object ): int {}
65
99
100
+ /** @refcount 1 */
66
101
function date_diff (
67
102
DateTimeInterface $ baseObject , DateTimeInterface $ targetObject , bool $ absolute = false ): DateInterval {}
68
103
@@ -77,45 +112,75 @@ function date_timestamp_set(DateTime $object, int $timestamp): DateTime {}
77
112
78
113
function date_timestamp_get (DateTimeInterface $ object ): int {}
79
114
115
+ /** @refcount 1 */
80
116
function timezone_open (string $ timezone ): DateTimeZone |false {}
81
117
118
+ /** @refcount 1 */
82
119
function timezone_name_get (DateTimeZone $ object ): string {}
83
120
121
+ /** @refcount 1 */
84
122
function timezone_name_from_abbr (string $ abbr , int $ utcOffset = -1 , int $ isDST = -1 ): string |false {}
85
123
86
124
function timezone_offset_get (DateTimeZone $ object , DateTimeInterface $ datetime ): int {}
87
125
126
+ /** @refcount 1 */
88
127
function timezone_transitions_get (
89
128
DateTimeZone $ object , int $ timestampBegin = PHP_INT_MIN , int $ timestampEnd = PHP_INT_MAX ): array |false {}
90
129
130
+ /**
131
+ * @return array<string, float|string>
132
+ * @refcount 1
133
+ */
91
134
function timezone_location_get (DateTimeZone $ object ): array |false {}
92
135
136
+ /**
137
+ * @return array<int, string>
138
+ * @refcount 1
139
+ */
93
140
function timezone_identifiers_list (int $ timezoneGroup = DateTimeZone::ALL , ?string $ countryCode = null ): array {}
94
141
142
+ /**
143
+ * @return array<string, array>
144
+ * @refcount 1
145
+ */
95
146
function timezone_abbreviations_list (): array {}
96
147
148
+ /** @refcount 1 */
97
149
function timezone_version_get (): string {}
98
150
151
+ /** @refcount 1 */
99
152
function date_interval_create_from_date_string (string $ datetime ): DateInterval |false {}
100
153
154
+ /** @refcount 1 */
101
155
function date_interval_format (DateInterval $ object , string $ format ): string {}
102
156
103
157
function date_default_timezone_set (string $ timezoneId ): bool {}
104
158
159
+ /** @refcount 1 */
105
160
function date_default_timezone_get (): string {}
106
161
107
- /** @deprecated */
162
+ /**
163
+ * @refcount 1
164
+ * @deprecated
165
+ */
108
166
function date_sunrise (
109
167
int $ timestamp , int $ returnFormat = SUNFUNCS_RET_STRING ,
110
168
?float $ latitude = null , ?float $ longitude = null , ?float $ zenith = null ,
111
169
?float $ utcOffset = null ): string |int |float |false {}
112
170
113
- /** @deprecated */
171
+ /**
172
+ * @refcount 1
173
+ * @deprecated
174
+ */
114
175
function date_sunset (
115
176
int $ timestamp , int $ returnFormat = SUNFUNCS_RET_STRING ,
116
177
?float $ latitude = null , ?float $ longitude = null , ?float $ zenith = null ,
117
178
?float $ utcOffset = null ): string |int |float |false {}
118
179
180
+ /**
181
+ * @return array<string, bool|int>
182
+ * @refcount 1
183
+ */
119
184
function date_sun_info (int $ timestamp , float $ latitude , float $ longitude ): array {}
120
185
121
186
interface DateTimeInterface
0 commit comments