2
2
3
3
/** @generate-function-entries */
4
4
5
- function strtotime (string $ time , ?int $ now = null ): int |false {}
5
+ function strtotime (string $ datetime , ?int $ now = null ): int |false {}
6
6
7
7
function date (string $ format , ?int $ timestamp = null ): string {}
8
8
@@ -11,14 +11,14 @@ function idate(string $format, ?int $timestamp = null): int|false {}
11
11
function gmdate (string $ format , ?int $ timestamp = null ): string {}
12
12
13
13
function mktime (
14
- int $ hour , ?int $ min = null , ?int $ sec = null ,
15
- ?int $ mon = null , ?int $ day = null , ?int $ year = null ): int |false {}
14
+ int $ hour , ?int $ minute = null , ?int $ second = null ,
15
+ ?int $ month = null , ?int $ day = null , ?int $ year = null ): int |false {}
16
16
17
17
function gmmktime (
18
- int $ hour , ?int $ min = null , ?int $ sec = null ,
19
- ?int $ mon = null , ?int $ day = null , ?int $ year = null ): int |false {}
18
+ int $ hour , ?int $ minute = null , ?int $ second = null ,
19
+ ?int $ month = null , ?int $ day = null , ?int $ year = null ): int |false {}
20
20
21
- function checkdate (int $ m , int $ d , int $ y ): bool {}
21
+ function checkdate (int $ month , int $ day , int $ year ): bool {}
22
22
23
23
function strftime (string $ format , ?int $ timestamp = null ): string |false {}
24
24
@@ -30,26 +30,26 @@ function localtime(?int $timestamp = null, bool $associative = false): array {}
30
30
31
31
function getdate (?int $ timestamp = null ): array {}
32
32
33
- function date_create (string $ time = "now " , ?DateTimeZone $ timezone = null ): DateTime |false {}
33
+ function date_create (string $ datetime = "now " , ?DateTimeZone $ timezone = null ): DateTime |false {}
34
34
35
35
function date_create_immutable (
36
- string $ time = "now " , ?DateTimeZone $ timezone = null ): DateTimeImmutable |false {}
36
+ string $ datetime = "now " , ?DateTimeZone $ timezone = null ): DateTimeImmutable |false {}
37
37
38
38
function date_create_from_format (
39
- string $ format , string $ time , ?DateTimeZone $ timezone = null ): DateTime |false {}
39
+ string $ format , string $ datetime , ?DateTimeZone $ timezone = null ): DateTime |false {}
40
40
41
41
function date_create_immutable_from_format (
42
- string $ format , string $ time , ?DateTimeZone $ timezone = null ): DateTimeImmutable |false {}
42
+ string $ format , string $ datetime , ?DateTimeZone $ timezone = null ): DateTimeImmutable |false {}
43
43
44
- function date_parse (string $ date ): array {}
44
+ function date_parse (string $ datetime ): array {}
45
45
46
- function date_parse_from_format (string $ format , string $ date ): array {}
46
+ function date_parse_from_format (string $ format , string $ datetime ): array {}
47
47
48
48
function date_get_last_errors (): array |false {}
49
49
50
50
function date_format (DateTimeInterface $ object , string $ format ): string {}
51
51
52
- function date_modify (DateTime $ object , string $ modify ): DateTime |false {}
52
+ function date_modify (DateTime $ object , string $ modifier ): DateTime |false {}
53
53
54
54
function date_add (DateTime $ object , DateInterval $ interval ): DateTime {}
55
55
@@ -62,10 +62,10 @@ function date_timezone_set(DateTimeInterface $object, DateTimeZone $timezone): D
62
62
function date_offset_get (DateTimeInterface $ object ): int {}
63
63
64
64
function date_diff (
65
- DateTimeInterface $ object , DateTimeInterface $ object2 , bool $ absolute = false ): DateInterval {}
65
+ DateTimeInterface $ object1 , DateTimeInterface $ object2 , bool $ absolute = false ): DateInterval {}
66
66
67
67
function date_time_set (
68
- DateTime $ object , int $ hour , int $ minute , int $ second = 0 , int $ microseconds = 0 ): DateTime {}
68
+ DateTime $ object , int $ hour , int $ minute , int $ second = 0 , int $ microsecond = 0 ): DateTime {}
69
69
70
70
function date_date_set (DateTime $ object , int $ year , int $ month , int $ day ): DateTime {}
71
71
@@ -94,7 +94,7 @@ function timezone_abbreviations_list(): array {}
94
94
95
95
function timezone_version_get (): string {}
96
96
97
- function date_interval_create_from_date_string (string $ time ): DateInterval |false {}
97
+ function date_interval_create_from_date_string (string $ datetime ): DateInterval |false {}
98
98
99
99
function date_interval_format (DateInterval $ object , string $ format ): string {}
100
100
@@ -103,16 +103,16 @@ function date_default_timezone_set(string $timezone_identifier): bool {}
103
103
function date_default_timezone_get (): string {}
104
104
105
105
function date_sunrise (
106
- int $ time , int $ retformat = SUNFUNCS_RET_STRING ,
106
+ int $ timestamp , int $ retformat = SUNFUNCS_RET_STRING ,
107
107
?float $ latitude = null , ?float $ longitude = null , ?float $ zenith = null ,
108
108
float $ gmt_offset = 0 ): string |int |float |false {}
109
109
110
110
function date_sunset (
111
- int $ time , int $ retformat = SUNFUNCS_RET_STRING ,
111
+ int $ timestamp , int $ retformat = SUNFUNCS_RET_STRING ,
112
112
?float $ latitude = null , ?float $ longitude = null , ?float $ zenith = null ,
113
113
float $ gmt_offset = 0 ): string |int |float |false {}
114
114
115
- function date_sun_info (int $ time , float $ latitude , float $ longitude ): array {}
115
+ function date_sun_info (int $ timestamp , float $ latitude , float $ longitude ): array {}
116
116
117
117
// NB: Adding return types to methods is a BC break!
118
118
// For now only using @return annotations here.
@@ -139,7 +139,7 @@ public function __wakeup();
139
139
140
140
class DateTime implements DateTimeInterface
141
141
{
142
- public function __construct (string $ time = "now " , ?DateTimeZone $ timezone = null ) {}
142
+ public function __construct (string $ datetime = "now " , ?DateTimeZone $ timezone = null ) {}
143
143
144
144
public function __wakeup () {}
145
145
@@ -155,7 +155,7 @@ public static function createFromInterface(DateTimeInterface $object): DateTime
155
155
* @return DateTime|false
156
156
* @alias date_create_from_format
157
157
*/
158
- public static function createFromFormat (string $ format , string $ time , ?DateTimeZone $ timezone = null ) {}
158
+ public static function createFromFormat (string $ format , string $ datetime , ?DateTimeZone $ timezone = null ) {}
159
159
160
160
/**
161
161
* @return array|false
@@ -173,7 +173,7 @@ public function format(string $format) {}
173
173
* @return DateTime|false
174
174
* @alias date_modify
175
175
*/
176
- public function modify (string $ modify ) {}
176
+ public function modify (string $ modifier ) {}
177
177
178
178
/**
179
179
* @return DateTime
@@ -209,7 +209,7 @@ public function getOffset() {}
209
209
* @return DateTime
210
210
* @alias date_time_set
211
211
*/
212
- public function setTime (int $ hour , int $ minute , int $ second = 0 , int $ microseconds = 0 ) {}
212
+ public function setTime (int $ hour , int $ minute , int $ second = 0 , int $ microsecond = 0 ) {}
213
213
214
214
/**
215
215
* @return DateTime
@@ -221,7 +221,7 @@ public function setDate(int $year, int $month, int $day) {}
221
221
* @return DateTime
222
222
* @alias date_isodate_set
223
223
*/
224
- public function setISODate (int $ year , int $ week , int $ day = 1 ) {}
224
+ public function setISODate (int $ year , int $ week , int $ day_of_week = 1 ) {}
225
225
226
226
/**
227
227
* @return DateTime
@@ -244,7 +244,7 @@ public function diff(DateTimeInterface $object, bool $absolute = false) {}
244
244
245
245
class DateTimeImmutable implements DateTimeInterface
246
246
{
247
- public function __construct (string $ time = "now " , ?DateTimeZone $ timezone = null ) {}
247
+ public function __construct (string $ datetime = "now " , ?DateTimeZone $ timezone = null ) {}
248
248
249
249
public function __wakeup () {}
250
250
@@ -255,7 +255,7 @@ public static function __set_state(array $array) {}
255
255
* @return DateTimeImmutable|false
256
256
* @alias date_create_immutable_from_format
257
257
*/
258
- public static function createFromFormat (string $ format , string $ time , ?DateTimeZone $ timezone = null ) {}
258
+ public static function createFromFormat (string $ format , string $ datetime , ?DateTimeZone $ timezone = null ) {}
259
259
260
260
/**
261
261
* @return array|false
@@ -294,7 +294,7 @@ public function getTimestamp() {}
294
294
public function diff (DateTimeInterface $ object , bool $ absolute = false ) {}
295
295
296
296
/** @return DateTimeImmutable|false */
297
- public function modify (string $ modify ) {}
297
+ public function modify (string $ modifier ) {}
298
298
299
299
/** @return DateTimeImmutable */
300
300
public function add (DateInterval $ interval ) {}
@@ -306,13 +306,13 @@ public function sub(DateInterval $interval) {}
306
306
public function setTimezone (DateTimeZone $ timezone ) {}
307
307
308
308
/** @return DateTimeImmutable */
309
- public function setTime (int $ hour , int $ minute , int $ second = 0 , int $ microseconds = 0 ) {}
309
+ public function setTime (int $ hour , int $ minute , int $ second = 0 , int $ microsecond = 0 ) {}
310
310
311
311
/** @return DateTimeImmutable */
312
312
public function setDate (int $ year , int $ month , int $ day ) {}
313
313
314
314
/** @return DateTimeImmutable */
315
- public function setISODate (int $ year , int $ week , int $ day = 1 ) {}
315
+ public function setISODate (int $ year , int $ week , int $ day_of_week = 1 ) {}
316
316
317
317
/** @return DateTimeImmutable */
318
318
public function setTimestamp (int $ timestamp ) {}
@@ -377,7 +377,7 @@ public function __construct(string $interval_spec) {}
377
377
* @return DateInterval|false
378
378
* @alias date_interval_create_from_date_string
379
379
*/
380
- public static function createFromDateString (string $ time ) {}
380
+ public static function createFromDateString (string $ datetime ) {}
381
381
382
382
/**
383
383
* @return string
0 commit comments