forked from HvyIndustries/crane-php-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
date.php
1813 lines (1680 loc) · 49.4 KB
/
date.php
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
// Start of date v.7.0.4-7ubuntu2
interface DateTimeInterface {
/**
* @param $format
*/
abstract public function format($format);
abstract public function getTimezone();
abstract public function getOffset();
abstract public function getTimestamp();
/**
* @param $object
* @param $absolute [optional]
*/
abstract public function diff($object, $absolute);
abstract public function __wakeup();
}
class DateTime implements DateTimeInterface {
const ATOM = "Y-m-d\TH:i:sP";
const COOKIE = "l, d-M-Y H:i:s T";
const ISO8601 = "Y-m-d\TH:i:sO";
const RFC822 = "D, d M y H:i:s O";
const RFC850 = "l, d-M-y H:i:s T";
const RFC1036 = "D, d M y H:i:s O";
const RFC1123 = "D, d M Y H:i:s O";
const RFC2822 = "D, d M Y H:i:s O";
const RFC3339 = "Y-m-d\TH:i:sP";
const RFC3339_EXTENDED = "Y-m-d\TH:i:s.vP";
const RSS = "D, d M Y H:i:s O";
const W3C = "Y-m-d\TH:i:sP";
/**
* @param $time [optional]
* @param $object [optional]
*/
public function __construct($time, $object) {}
public function __wakeup() {}
public static function __set_state() {}
/**
* @param $format
* @param $time
* @param $object [optional]
*/
public static function createFromFormat($format, $time, $object) {}
public static function getLastErrors() {}
/**
* @param $format
*/
public function format($format) {}
/**
* @param $modify
*/
public function modify($modify) {}
/**
* @param $interval
*/
public function add($interval) {}
/**
* @param $interval
*/
public function sub($interval) {}
public function getTimezone() {}
/**
* @param $timezone
*/
public function setTimezone($timezone) {}
public function getOffset() {}
/**
* @param $hour
* @param $minute
* @param $second [optional]
*/
public function setTime($hour, $minute, $second) {}
/**
* @param $year
* @param $month
* @param $day
*/
public function setDate($year, $month, $day) {}
/**
* @param $year
* @param $week
* @param $day [optional]
*/
public function setISODate($year, $week, $day) {}
/**
* @param $unixtimestamp
*/
public function setTimestamp($unixtimestamp) {}
public function getTimestamp() {}
/**
* @param $object
* @param $absolute [optional]
*/
public function diff($object, $absolute) {}
}
class DateTimeImmutable implements DateTimeInterface {
/**
* @param $time [optional]
* @param $object [optional]
*/
public function __construct($time, $object) {}
public function __wakeup() {}
public static function __set_state() {}
/**
* @param $format
* @param $time
* @param $object [optional]
*/
public static function createFromFormat($format, $time, $object) {}
public static function getLastErrors() {}
/**
* @param $format
*/
public function format($format) {}
public function getTimezone() {}
public function getOffset() {}
public function getTimestamp() {}
/**
* @param $object
* @param $absolute [optional]
*/
public function diff($object, $absolute) {}
/**
* @param $modify
*/
public function modify($modify) {}
/**
* @param $interval
*/
public function add($interval) {}
/**
* @param $interval
*/
public function sub($interval) {}
/**
* @param $timezone
*/
public function setTimezone($timezone) {}
/**
* @param $hour
* @param $minute
* @param $second [optional]
*/
public function setTime($hour, $minute, $second) {}
/**
* @param $year
* @param $month
* @param $day
*/
public function setDate($year, $month, $day) {}
/**
* @param $year
* @param $week
* @param $day [optional]
*/
public function setISODate($year, $week, $day) {}
/**
* @param $unixtimestamp
*/
public function setTimestamp($unixtimestamp) {}
/**
* @param $DateTime
*/
public static function createFromMutable($DateTime) {}
}
class DateTimeZone {
const AFRICA = 1;
const AMERICA = 2;
const ANTARCTICA = 4;
const ARCTIC = 8;
const ASIA = 16;
const ATLANTIC = 32;
const AUSTRALIA = 64;
const EUROPE = 128;
const INDIAN = 256;
const PACIFIC = 512;
const UTC = 1024;
const ALL = 2047;
const ALL_WITH_BC = 4095;
const PER_COUNTRY = 4096;
/**
* @param $timezone
*/
public function __construct($timezone) {}
public function __wakeup() {}
public static function __set_state() {}
public function getName() {}
/**
* @param $object
*/
public function getOffset($object) {}
/**
* @param $timestamp_begin
* @param $timestamp_end
*/
public function getTransitions($timestamp_begin, $timestamp_end) {}
public function getLocation() {}
public static function listAbbreviations() {}
/**
* @param $what [optional]
* @param $country [optional]
*/
public static function listIdentifiers($what, $country) {}
}
class DateInterval {
/**
* <p style="margin-top:0;">
* Number of years.
* </p>
* @var integer
*/
public $y;
/**
* <p style="margin-top:0;">
* Number of months.
* </p>
* @var integer
*/
public $m;
/**
* <p style="margin-top:0;">
* Number of days.
* </p>
* @var integer
*/
public $d;
/**
* <p style="margin-top:0;">
* Number of hours.
* </p>
* @var integer
*/
public $h;
/**
* <p style="margin-top:0;">
* Number of minutes.
* </p>
* @var integer
*/
public $i;
/**
* <p style="margin-top:0;">
* Number of seconds.
* </p>
* @var integer
*/
public $s;
/**
* <p style="margin-top:0;">
* Is 1 if the interval
* represents a negative time period and
* 0 otherwise.
* See <b>DateInterval::format()</b>.
* </p>
* @var integer
*/
public $invert;
/**
* <p style="margin-top:0;">
* If the DateInterval object was created by
* <b>DateTime::diff()</b>, then this is the total number of
* days between the start and end dates. Otherwise,
* days will be <b><code>FALSE</code></b>.
* </p>
* <p>
* Before PHP 5.4.20/5.5.4 instead of <b><code>FALSE</code></b> you will receive -99999 upon
* accessing the property.
* </p>
* @var mixed
*/
public $days;
/**
* @param $interval_spec
*/
public function __construct($interval_spec) {}
public function __wakeup() {}
public static function __set_state() {}
/**
* @param $format
*/
public function format($format) {}
/**
* @param $time
*/
public static function createFromDateString($time) {}
}
class DatePeriod implements Traversable {
const EXCLUDE_START_DATE = 1;
/**
* @param $start
* @param $interval
* @param $end
*/
public function __construct($start, $interval, $end) {}
public function __wakeup() {}
public static function __set_state() {}
public function getStartDate() {}
public function getEndDate() {}
public function getDateInterval() {}
}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Parse about any English textual datetime description into a Unix timestamp
* @link http://php.net/manual/en/function.strtotime.php
* @param string $time <p>A date/time string. Valid formats are explained in Date and Time Formats.</p>
* @param int $now [optional] <p>
* The timestamp which is used as a base for the calculation of relative
* dates.
* </p>
* @return int a timestamp on success, <b>FALSE</b> otherwise. Previous to PHP 5.1.0,
* this function would return -1 on failure.
*/
function strtotime(string $time, int $now = 'time()'): int {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Format a local time/date
* @link http://php.net/manual/en/function.date.php
* @param string $format <p>
* The format of the outputted date string. See the formatting
* options below. There are also several
* predefined date constants
* that may be used instead, so for example <b>DATE_RSS</b>
* contains the format string 'D, d M Y H:i:s'.
* </p>
* <p>
* <table>
* The following characters are recognized in the
* <i>format</i> parameter string
* <tr valign="top">
* <td><i>format</i> character</td>
* <td>Description</td>
* <td>Example returned values</td>
* </tr>
* <tr valign="top">
* Day</td>
* <td>---</td>
* <td>---</td>
* </tr>
* <tr valign="top">
* <td>d</td>
* <td>Day of the month, 2 digits with leading zeros</td>
* <td>01 to 31</td>
* </tr>
* <tr valign="top">
* <td>D</td>
* <td>A textual representation of a day, three letters</td>
* <td>Mon through Sun</td>
* </tr>
* <tr valign="top">
* <td>j</td>
* <td>Day of the month without leading zeros</td>
* <td>1 to 31</td>
* </tr>
* <tr valign="top">
* <td>l (lowercase 'L')</td>
* <td>A full textual representation of the day of the week</td>
* <td>Sunday through Saturday</td>
* </tr>
* <tr valign="top">
* <td>N</td>
* <td>ISO-8601 numeric representation of the day of the week (added in
* PHP 5.1.0)</td>
* <td>1 (for Monday) through 7 (for Sunday)</td>
* </tr>
* <tr valign="top">
* <td>S</td>
* <td>English ordinal suffix for the day of the month, 2 characters</td>
* <td>
* st, nd, rd or
* th. Works well with j
* </td>
* </tr>
* <tr valign="top">
* <td>w</td>
* <td>Numeric representation of the day of the week</td>
* <td>0 (for Sunday) through 6 (for Saturday)</td>
* </tr>
* <tr valign="top">
* <td>z</td>
* <td>The day of the year (starting from 0)</td>
* <td>0 through 365</td>
* </tr>
* <tr valign="top">
* Week</td>
* <td>---</td>
* <td>---</td>
* </tr>
* <tr valign="top">
* <td>W</td>
* <td>ISO-8601 week number of year, weeks starting on Monday (added in PHP 4.1.0)</td>
* <td>Example: 42 (the 42nd week in the year)</td>
* </tr>
* <tr valign="top">
* Month</td>
* <td>---</td>
* <td>---</td>
* </tr>
* <tr valign="top">
* <td>F</td>
* <td>A full textual representation of a month, such as January or March</td>
* <td>January through December</td>
* </tr>
* <tr valign="top">
* <td>m</td>
* <td>Numeric representation of a month, with leading zeros</td>
* <td>01 through 12</td>
* </tr>
* <tr valign="top">
* <td>M</td>
* <td>A short textual representation of a month, three letters</td>
* <td>Jan through Dec</td>
* </tr>
* <tr valign="top">
* <td>n</td>
* <td>Numeric representation of a month, without leading zeros</td>
* <td>1 through 12</td>
* </tr>
* <tr valign="top">
* <td>t</td>
* <td>Number of days in the given month</td>
* <td>28 through 31</td>
* </tr>
* <tr valign="top">
* Year</td>
* <td>---</td>
* <td>---</td>
* </tr>
* <tr valign="top">
* <td>L</td>
* <td>Whether it's a leap year</td>
* <td>1 if it is a leap year, 0 otherwise.</td>
* </tr>
* <tr valign="top">
* <td>o</td>
* <td>ISO-8601 year number. This has the same value as
* Y, except that if the ISO week number
* (W) belongs to the previous or next year, that year
* is used instead. (added in PHP 5.1.0)</td>
* <td>Examples: 1999 or 2003</td>
* </tr>
* <tr valign="top">
* <td>Y</td>
* <td>A full numeric representation of a year, 4 digits</td>
* <td>Examples: 1999 or 2003</td>
* </tr>
* <tr valign="top">
* <td>y</td>
* <td>A two digit representation of a year</td>
* <td>Examples: 99 or 03</td>
* </tr>
* <tr valign="top">
* Time</td>
* <td>---</td>
* <td>---</td>
* </tr>
* <tr valign="top">
* <td>a</td>
* <td>Lowercase Ante meridiem and Post meridiem</td>
* <td>am or pm</td>
* </tr>
* <tr valign="top">
* <td>A</td>
* <td>Uppercase Ante meridiem and Post meridiem</td>
* <td>AM or PM</td>
* </tr>
* <tr valign="top">
* <td>B</td>
* <td>Swatch Internet time</td>
* <td>000 through 999</td>
* </tr>
* <tr valign="top">
* <td>g</td>
* <td>12-hour format of an hour without leading zeros</td>
* <td>1 through 12</td>
* </tr>
* <tr valign="top">
* <td>G</td>
* <td>24-hour format of an hour without leading zeros</td>
* <td>0 through 23</td>
* </tr>
* <tr valign="top">
* <td>h</td>
* <td>12-hour format of an hour with leading zeros</td>
* <td>01 through 12</td>
* </tr>
* <tr valign="top">
* <td>H</td>
* <td>24-hour format of an hour with leading zeros</td>
* <td>00 through 23</td>
* </tr>
* <tr valign="top">
* <td>i</td>
* <td>Minutes with leading zeros</td>
* <td>00 to 59</td>
* </tr>
* <tr valign="top">
* <td>s</td>
* <td>Seconds, with leading zeros</td>
* <td>00 through 59</td>
* </tr>
* <tr valign="top">
* <td>u</td>
* <td>
* Microseconds (added in PHP 5.2.2). Note that
* <b>date</b> will always generate
* 000000 since it takes an integer
* parameter, whereas <b>DateTime::format</b> does
* support microseconds if <b>DateTime</b> was
* created with microseconds.
* </td>
* <td>Example: 654321</td>
* </tr>
* <tr valign="top">
* Timezone</td>
* <td>---</td>
* <td>---</td>
* </tr>
* <tr valign="top">
* <td>e</td>
* <td>Timezone identifier (added in PHP 5.1.0)</td>
* <td>Examples: UTC, GMT, Atlantic/Azores</td>
* </tr>
* <tr valign="top">
* <td>I (capital i)</td>
* <td>Whether or not the date is in daylight saving time</td>
* <td>1 if Daylight Saving Time, 0 otherwise.</td>
* </tr>
* <tr valign="top">
* <td>O</td>
* <td>Difference to Greenwich time (GMT) in hours</td>
* <td>Example: +0200</td>
* </tr>
* <tr valign="top">
* <td>P</td>
* <td>Difference to Greenwich time (GMT) with colon between hours and minutes (added in PHP 5.1.3)</td>
* <td>Example: +02:00</td>
* </tr>
* <tr valign="top">
* <td>T</td>
* <td>Timezone abbreviation</td>
* <td>Examples: EST, MDT ...</td>
* </tr>
* <tr valign="top">
* <td>Z</td>
* <td>Timezone offset in seconds. The offset for timezones west of UTC is always
* negative, and for those east of UTC is always positive.</td>
* <td>-43200 through 50400</td>
* </tr>
* <tr valign="top">
* Full Date/Time</td>
* <td>---</td>
* <td>---</td>
* </tr>
* <tr valign="top">
* <td>c</td>
* <td>ISO 8601 date (added in PHP 5)</td>
* <td>2004-02-12T15:19:21+00:00</td>
* </tr>
* <tr valign="top">
* <td>r</td>
* <td>RFC 2822 formatted date</td>
* <td>Example: Thu, 21 Dec 2000 16:01:07 +0200</td>
* </tr>
* <tr valign="top">
* <td>U</td>
* <td>Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)</td>
* <td>See also <b>time</b></td>
* </tr>
* </table>
* </p>
* <p>
* Unrecognized characters in the format string will be printed
* as-is. The Z format will always return
* 0 when using <b>gmdate</b>.
* </p>
* <p>
* Since this function only accepts integer timestamps the
* u format character is only useful when using the
* <b>date_format</b> function with user based timestamps
* created with <b>date_create</b>.
* </p>
* @param int $timestamp [optional]
* @return string a formatted date string. If a non-numeric value is used for
* <i>timestamp</i>, <b>FALSE</b> is returned and an
* <b>E_WARNING</b> level error is emitted.
*/
function date(string $format, int $timestamp = 'time()'): string {}
/**
* (PHP 5, PHP 7)<br/>
* Format a local time/date as integer
* @link http://php.net/manual/en/function.idate.php
* @param string $format <p>
* <table>
* The following characters are recognized in the
* <i>format</i> parameter string
* <tr valign="top">
* <td><i>format</i> character</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>B</td>
* <td>Swatch Beat/Internet Time</td>
* </tr>
* <tr valign="top">
* <td>d</td>
* <td>Day of the month</td>
* </tr>
* <tr valign="top">
* <td>h</td>
* <td>Hour (12 hour format)</td>
* </tr>
* <tr valign="top">
* <td>H</td>
* <td>Hour (24 hour format)</td>
* </tr>
* <tr valign="top">
* <td>i</td>
* <td>Minutes</td>
* </tr>
* <tr valign="top">
* <td>I (uppercase i)</td>
* <td>returns 1 if DST is activated,
* 0 otherwise</td>
* </tr>
* <tr valign="top">
* <td>L (uppercase l)</td>
* <td>returns 1 for leap year,
* 0 otherwise</td>
* </tr>
* <tr valign="top">
* <td>m</td>
* <td>Month number</td>
* </tr>
* <tr valign="top">
* <td>s</td>
* <td>Seconds</td>
* </tr>
* <tr valign="top">
* <td>t</td>
* <td>Days in current month</td>
* </tr>
* <tr valign="top">
* <td>U</td>
* <td>Seconds since the Unix Epoch - January 1 1970 00:00:00 UTC -
* this is the same as <b>time</b></td>
* </tr>
* <tr valign="top">
* <td>w</td>
* <td>Day of the week (0 on Sunday)</td>
* </tr>
* <tr valign="top">
* <td>W</td>
* <td>ISO-8601 week number of year, weeks starting on
* Monday</td>
* </tr>
* <tr valign="top">
* <td>y</td>
* <td>Year (1 or 2 digits - check note below)</td>
* </tr>
* <tr valign="top">
* <td>Y</td>
* <td>Year (4 digits)</td>
* </tr>
* <tr valign="top">
* <td>z</td>
* <td>Day of the year</td>
* </tr>
* <tr valign="top">
* <td>Z</td>
* <td>Timezone offset in seconds</td>
* </tr>
* </table>
* </p>
* @param int $timestamp [optional]
* @return int an integer.
* </p>
* <p>
* As <b>idate</b> always returns an integer and
* as they can't start with a "0", <b>idate</b> may return
* fewer digits than you would expect. See the example below.
*/
function idate(string $format, int $timestamp = 'time()'): int {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Format a GMT/UTC date/time
* @link http://php.net/manual/en/function.gmdate.php
* @param string $format <p>
* The format of the outputted date string. See the formatting
* options for the <b>date</b> function.
* </p>
* @param int $timestamp [optional]
* @return string a formatted date string. If a non-numeric value is used for
* <i>timestamp</i>, <b>FALSE</b> is returned and an
* <b>E_WARNING</b> level error is emitted.
*/
function gmdate(string $format, int $timestamp = 'time()'): string {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Get Unix timestamp for a date
* @link http://php.net/manual/en/function.mktime.php
* @param int $hour [optional] <p>
* The number of the hour relative to the start of the day determined by
* <i>month</i>, <i>day</i> and <i>year</i>.
* Negative values reference the hour before midnight of the day in question.
* Values greater than 23 reference the appropriate hour in the following day(s).
* </p>
* @param int $minute [optional] <p>
* The number of the minute relative to the start of the <i>hour</i>.
* Negative values reference the minute in the previous hour.
* Values greater than 59 reference the appropriate minute in the following hour(s).
* </p>
* @param int $second [optional] <p>
* The number of seconds relative to the start of the <i>minute</i>.
* Negative values reference the second in the previous minute.
* Values greater than 59 reference the appropriate second in the following minute(s).
* </p>
* @param int $month [optional] <p>
* The number of the month relative to the end of the previous year.
* Values 1 to 12 reference the normal calendar months of the year in question.
* Values less than 1 (including negative values) reference the months in the previous year in reverse order, so 0 is December, -1 is November, etc.
* Values greater than 12 reference the appropriate month in the following year(s).
* </p>
* @param int $day [optional] <p>
* The number of the day relative to the end of the previous month.
* Values 1 to 28, 29, 30 or 31 (depending upon the month) reference the normal days in the relevant month.
* Values less than 1 (including negative values) reference the days in the previous month, so 0 is the last day of the previous month, -1 is the day before that, etc.
* Values greater than the number of days in the relevant month reference the appropriate day in the following month(s).
* </p>
* @param int $year [optional] <p>
* The number of the year, may be a two or four digit value,
* with values between 0-69 mapping to 2000-2069 and 70-100 to
* 1970-2000. On systems where time_t is a 32bit signed integer, as
* most common today, the valid range for <i>year</i>
* is somewhere between 1901 and 2038. However, before PHP 5.1.0 this
* range was limited from 1970 to 2038 on some systems (e.g. Windows).
* </p>
* @param int $is_dst [optional] <p>
* This parameter can be set to 1 if the time is during daylight savings time (DST),
* 0 if it is not, or -1 (the default) if it is unknown whether the time is within
* daylight savings time or not. If it's unknown, PHP tries to figure it out itself.
* This can cause unexpected (but not incorrect) results.
* Some times are invalid if DST is enabled on the system PHP is running on or
* <i>is_dst</i> is set to 1. If DST is enabled in e.g. 2:00, all times
* between 2:00 and 3:00 are invalid and <b>mktime</b> returns an undefined
* (usually negative) value.
* Some systems (e.g. Solaris 8) enable DST at midnight so time 0:30 of the day when DST
* is enabled is evaluated as 23:30 of the previous day.
* </p>
* <p>
* As of PHP 5.1.0, this parameter became deprecated. As a result, the
* new timezone handling features should be used instead.
* </p>
* <p>
* This parameter has been removed in PHP 7.0.0.
* </p>
* @return int <b>mktime</b> returns the Unix timestamp of the arguments
* given.
* If the arguments are invalid, the function returns <b>FALSE</b> (before PHP 5.1
* it returned -1).
*/
function mktime(int $hour = 'date("H")', int $minute = 'date("i")', int $second = 'date("s")', int $month = 'date("n")', int $day = 'date("j")', int $year = 'date("Y")', int $is_dst = -1): int {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Get Unix timestamp for a GMT date
* @link http://php.net/manual/en/function.gmmktime.php
* @param int $hour [optional] <p>
* The number of the hour relative to the start of the day determined by
* <i>month</i>, <i>day</i> and <i>year</i>.
* Negative values reference the hour before midnight of the day in question.
* Values greater than 23 reference the appropriate hour in the following day(s).
* </p>
* @param int $minute [optional] <p>
* The number of the minute relative to the start of the <i>hour</i>.
* Negative values reference the minute in the previous hour.
* Values greater than 59 reference the appropriate minute in the following hour(s).
* </p>
* @param int $second [optional] <p>
* The number of seconds relative to the start of the <i>minute</i>.
* Negative values reference the second in the previous minute.
* Values greater than 59 reference the appropriate second in the following minute(s).
* </p>
* @param int $month [optional] <p>
* The number of the month relative to the end of the previous year.
* Values 1 to 12 reference the normal calendar months of the year in question.
* Values less than 1 (including negative values) reference the months in the previous year in reverse order, so 0 is December, -1 is November, etc.
* Values greater than 12 reference the appropriate month in the following year(s).
* </p>
* @param int $day [optional] <p>
* The number of the day relative to the end of the previous month.
* Values 1 to 28, 29, 30 or 31 (depending upon the month) reference the normal days in the relevant month.
* Values less than 1 (including negative values) reference the days in the previous month, so 0 is the last day of the previous month, -1 is the day before that, etc.
* Values greater than the number of days in the relevant month reference the appropriate day in the following month(s).
* </p>
* @param int $year [optional] <p>
* The year
* </p>
* @param int $is_dst [optional] <p>
* Parameters always represent a GMT date so <i>is_dst</i>
* doesn't influence the result.
* </p>
* <p>
* This parameter has been removed in PHP 7.0.0.
* </p>
* @return int a integer Unix timestamp.
*/
function gmmktime(int $hour = 'gmdate("H")', int $minute = 'gmdate("i")', int $second = 'gmdate("s")', int $month = 'gmdate("n")', int $day = 'gmdate("j")', int $year = 'gmdate("Y")', int $is_dst = -1): int {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Validate a Gregorian date
* @link http://php.net/manual/en/function.checkdate.php
* @param int $month <p>
* The month is between 1 and 12 inclusive.
* </p>
* @param int $day <p>
* The day is within the allowed number of days for the given
* <i>month</i>. Leap <i>year</i>s
* are taken into consideration.
* </p>
* @param int $year <p>
* The year is between 1 and 32767 inclusive.
* </p>
* @return bool <b>TRUE</b> if the date given is valid; otherwise returns <b>FALSE</b>.
*/
function checkdate(int $month, int $day, int $year): bool {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Format a local time/date according to locale settings
* @link http://php.net/manual/en/function.strftime.php
* @param string $format <p>
* <table>
* The following characters are recognized in the
* <i>format</i> parameter string
* <tr valign="top">
* <td><i>format</i></td>
* <td>Description</td>
* <td>Example returned values</td>
* </tr>
* <tr valign="top">
* Day</td>
* <td>---</td>
* <td>---</td>
* </tr>
* <tr valign="top">
* <td>%a</td>
* <td>An abbreviated textual representation of the day</td>
* <td>Sun through Sat</td>
* </tr>
* <tr valign="top">
* <td>%A</td>
* <td>A full textual representation of the day</td>
* <td>Sunday through Saturday</td>
* </tr>
* <tr valign="top">
* <td>%d</td>
* <td>Two-digit day of the month (with leading zeros)</td>
* <td>01 to 31</td>
* </tr>
* <tr valign="top">
* <td>%e</td>
* <td>
* Day of the month, with a space preceding single digits. Not
* implemented as described on Windows. See below for more information.
* </td>
* <td> 1 to 31</td>
* </tr>
* <tr valign="top">
* <td>%j</td>
* <td>Day of the year, 3 digits with leading zeros</td>
* <td>001 to 366</td>
* </tr>
* <tr valign="top">
* <td>%u</td>
* <td>ISO-8601 numeric representation of the day of the week</td>
* <td>1 (for Monday) though 7 (for Sunday)</td>
* </tr>
* <tr valign="top">
* <td>%w</td>
* <td>Numeric representation of the day of the week</td>
* <td>0 (for Sunday) through 6 (for Saturday)</td>
* </tr>
* <tr valign="top">
* Week</td>
* <td>---</td>
* <td>---</td>
* </tr>
* <tr valign="top">
* <td>%U</td>
* <td>Week number of the given year, starting with the first
* Sunday as the first week</td>
* <td>13 (for the 13th full week of the year)</td>
* </tr>
* <tr valign="top">
* <td>%V</td>
* <td>ISO-8601:1988 week number of the given year, starting with
* the first week of the year with at least 4 weekdays, with Monday
* being the start of the week</td>
* <td>01 through 53 (where 53
* accounts for an overlapping week)</td>
* </tr>
* <tr valign="top">
* <td>%W</td>
* <td>A numeric representation of the week of the year, starting
* with the first Monday as the first week</td>
* <td>46 (for the 46th week of the year beginning
* with a Monday)</td>
* </tr>
* <tr valign="top">
* Month</td>
* <td>---</td>
* <td>---</td>
* </tr>
* <tr valign="top">