Home
last modified time | relevance | path

Searched refs:mktime (Results 1 – 25 of 109) sorted by relevance

12345

/PHP-7.3/ext/date/tests/
H A Dbug21966.phpt2 Bug #21966 (date() or mktime() returning bad value for mktime month param of '2')
7 echo '27/3/04 = ' . strval(mktime(0,0,0,3,27,2004)) . "\n"; // 1080345600
8 echo '28/3/04 = ' . strval(mktime(0,0,0,3,28,2004)) . "\n"; // -3662 - should be 108043200
9 echo '28/3/04 = ' . strval(mktime(2,0,0,3,28,2004)) . "\n"; // 1080435600
10 echo '29/3/04 = ' . strval(mktime(0,0,0,3,29,2004)) . "\n"; // 1080514800
11 echo '30/3/04 = ' . strval(mktime(0,0,0,3,30,2004)) . "\n"; // 1080601200
H A Dmktime_error.phpt2 Test mktime() function : error conditions
14 echo "*** Testing mktime() : error conditions ***\n";
16 echo "\n-- Testing mktime() function with Zero arguments --\n";
17 var_dump( mktime() );
19 echo "\n-- Testing mktime() function with more than expected no. of arguments --\n";
27 var_dump( mktime($hour, $minute, $sec, $month, $day, $year, $extra_arg) );
32 *** Testing mktime() : error conditions ***
34 -- Testing mktime() function with Zero arguments --
36 Deprecated: mktime(): You should be using the time() function instead in %s on line %d
39 -- Testing mktime() function with more than expected no. of arguments --
[all …]
H A Dmktime-1.phpt2 Check for mktime with out-of-range parameters
12 echo date("Y-m-d", mktime( 12, 0, 0, 3, 0, 2000)) ."\n";
13 echo date("Y-m-d", mktime( 12, 0, 0, 3, -1, 2000)) ."\n";
14 echo date("Y-m-d", mktime( 12, 0, 0, 2, 29, 2000)) ."\n";
15 echo date("Y-m-d", mktime( 12, 0, 0, 3, 0, 2001)) ."\n";
16 echo date("Y-m-d", mktime( 12, 0, 0, 2, 29, 2001)) ."\n";
17 echo date("Y-m-d", mktime( 12, 0, 0, 0, 0, 2000)) ."\n";
H A Dmktime_basic1.phpt2 Test mktime() function : basic functionality
5 /* Prototype : int mktime ([ int $hour= date("H") [, int $minute= date("i") [, int $second= dat…
23 var_dump( mktime($hour) );
24 var_dump( mktime($hour, $minute) );
25 var_dump( mktime($hour, $minute, $sec) );
26 var_dump( mktime($hour, $minute, $sec, $month) );
27 var_dump( mktime($hour, $minute, $sec, $month, $day) );
28 var_dump( mktime($hour, $minute, $sec, $month, $day, $year) );
H A Dsunfuncts.phpt9 echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_TIMESTAMP,31.76670,35.23330,90.83,2)." ";
10 echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_STRING,31.76670,35.23330,90.83,2)." ";
11 echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_DOUBLE,31.76670,35.23330,90.83,2)."\n";
13 echo date_sunset(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_TIMESTAMP,31.76670,35.23330,90.83,2)." ";
14 echo date_sunset(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_STRING,31.76670,35.23330,90.83,2)." ";
15 echo date_sunset(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_DOUBLE,31.76670,35.23330,90.83,2)."\n";
H A Dmktime_variation3.phpt2 Test mktime() function : usage variation - Passing unexpected values to third argument $second.
102 var_dump( mktime($hour, $minute, $second) );
133 Warning: mktime() expects parameter 3 to be int, array given in %s on line %d
138 Warning: mktime() expects parameter 3 to be int, array given in %s on line %d
143 Warning: mktime() expects parameter 3 to be int, array given in %s on line %d
148 Warning: mktime() expects parameter 3 to be int, array given in %s on line %d
171 Warning: mktime() expects parameter 3 to be int, string given in %s on line %d
176 Warning: mktime() expects parameter 3 to be int, string given in %s on line %d
181 Warning: mktime() expects parameter 3 to be int, string given in %s on line %d
186 Warning: mktime() expects parameter 3 to be int, string given in %s on line %d
[all …]
H A Dmktime_variation1.phpt2 Test mktime() function : usage variation - Passing unexpected values to first argument $hour.
107 var_dump( mktime($hour) );
138 Warning: mktime() expects parameter 1 to be int, array given in %s on line %d
143 Warning: mktime() expects parameter 1 to be int, array given in %s on line %d
148 Warning: mktime() expects parameter 1 to be int, array given in %s on line %d
153 Warning: mktime() expects parameter 1 to be int, array given in %s on line %d
176 Warning: mktime() expects parameter 1 to be int, string given in %s on line %d
181 Warning: mktime() expects parameter 1 to be int, string given in %s on line %d
186 Warning: mktime() expects parameter 1 to be int, string given in %s on line %d
191 Warning: mktime() expects parameter 1 to be int, string given in %s on line %d
[all …]
H A Dmktime_variation2.phpt2 Test mktime() function : usage variation - Passing unexpected values to second argument $minute.
101 var_dump( mktime($hour, $minute) );
132 Warning: mktime() expects parameter 2 to be int, array given in %s on line %d
137 Warning: mktime() expects parameter 2 to be int, array given in %s on line %d
142 Warning: mktime() expects parameter 2 to be int, array given in %s on line %d
147 Warning: mktime() expects parameter 2 to be int, array given in %s on line %d
170 Warning: mktime() expects parameter 2 to be int, string given in %s on line %d
175 Warning: mktime() expects parameter 2 to be int, string given in %s on line %d
180 Warning: mktime() expects parameter 2 to be int, string given in %s on line %d
185 Warning: mktime() expects parameter 2 to be int, string given in %s on line %d
[all …]
H A Dmktime_variation4.phpt2 Test mktime() function : usage variation - Passing unexpected values to forth argument $month.
103 var_dump( mktime($hour, $minute, $second, $month) );
134 Warning: mktime() expects parameter 4 to be int, array given in %s on line %d
139 Warning: mktime() expects parameter 4 to be int, array given in %s on line %d
144 Warning: mktime() expects parameter 4 to be int, array given in %s on line %d
149 Warning: mktime() expects parameter 4 to be int, array given in %s on line %d
172 Warning: mktime() expects parameter 4 to be int, string given in %s on line %d
177 Warning: mktime() expects parameter 4 to be int, string given in %s on line %d
182 Warning: mktime() expects parameter 4 to be int, string given in %s on line %d
187 Warning: mktime() expects parameter 4 to be int, string given in %s on line %d
[all …]
H A Dmktime_variation5.phpt2 Test mktime() function : usage variation - Passing unexpected values to fifth argument $day.
104 var_dump( mktime($hour, $minute, $second, $month, $day) );
135 Warning: mktime() expects parameter 5 to be int, array given in %s on line %d
140 Warning: mktime() expects parameter 5 to be int, array given in %s on line %d
145 Warning: mktime() expects parameter 5 to be int, array given in %s on line %d
150 Warning: mktime() expects parameter 5 to be int, array given in %s on line %d
173 Warning: mktime() expects parameter 5 to be int, string given in %s on line %d
178 Warning: mktime() expects parameter 5 to be int, string given in %s on line %d
183 Warning: mktime() expects parameter 5 to be int, string given in %s on line %d
188 Warning: mktime() expects parameter 5 to be int, string given in %s on line %d
[all …]
H A Dmktime_variation6.phpt2 Test mktime() function : usage variation - Passing unexpected values to sixth argument $year.
105 var_dump( mktime($hour, $minute, $second, $month, $day, $year) );
136 Warning: mktime() expects parameter 6 to be int, array given in %s on line %d
141 Warning: mktime() expects parameter 6 to be int, array given in %s on line %d
146 Warning: mktime() expects parameter 6 to be int, array given in %s on line %d
151 Warning: mktime() expects parameter 6 to be int, array given in %s on line %d
174 Warning: mktime() expects parameter 6 to be int, string given in %s on line %d
179 Warning: mktime() expects parameter 6 to be int, string given in %s on line %d
184 Warning: mktime() expects parameter 6 to be int, string given in %s on line %d
189 Warning: mktime() expects parameter 6 to be int, string given in %s on line %d
[all …]
H A Dbug36988.phpt2 Bug #36988 (mktime freezes on long numbers)
9 $a = mktime(1, 1, 1, 1, 1, 11111111111);
12 Warning: mktime() expects parameter 6 to be int, float given in %s on line %d
H A Dbug33414-1.phpt9 $tStamp = mktime (17, 17, 17, 1, 8327, 1970);
17 $tStamp = mktime (17, 17, 17, 1, 7599, 1970);
25 $tStamp = mktime (17, 17, 17, 1, 7599, 1970);
33 $tStamp = mktime (17, 17, 17, 1, 7958, 1970);
42 $tStamp = mktime (17, 17, 17, 1, 3746, 1970);
50 $tStamp = mktime (17, 17, 17, 1, 8299, 1970);
58 $tStamp = mktime (17, 17, 17, 1, 10866, 1970);
66 $tStamp = mktime (17, 17, 17, 1, 12720, 1970);
74 $tStamp = mktime (17, 17, 17, 1, 11777, 1970);
82 $tStamp = mktime (17, 17, 17, 1, 13056, 1970);
[all …]
H A Dgmdate_variation12.phpt16 $timestamp = mktime(20, 45, 54, 12, 13, 1901);
20 $timestamp = mktime(20, 45, 50, 12, 13, 1901);
25 $timestamp = mktime(03, 14, 07, 1, 19, 2038);
29 $timestamp = mktime(03, 14, 10, 1, 19, 2038);
H A Dbug33414-2.phpt7 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
15 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
23 $tStamp = mktime (17, 17, 17, 1, 12871, 1970);
31 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
39 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
47 $tStamp = mktime (17, 17, 17, 1, 12879, 1970);
55 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
63 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
71 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
H A Ddate_sunrise_variation8.phpt18 "12 Aug 2008" => mktime(8, 8, 8, 8, 12, 2008),
19 "13 Aug 2008" => mktime(8, 8, 8, 8, 13, 2008),
22 "12 Nov 2008" => mktime(8, 8, 8, 11, 12, 2008),
23 "13 Nov 2008" => mktime(8, 8, 8, 11, 13, 2008),
H A Ddate_sunset_variation8.phpt18 "12 Aug 2008" => mktime(8, 8, 8, 8, 12, 2008),
19 "13 Aug 2008" => mktime(8, 8, 8, 8, 13, 2008),
22 "12 Nov 2008" => mktime(8, 8, 8, 11, 12, 2008),
23 "13 Nov 2008" => mktime(8, 8, 8, 11, 13, 2008),
H A Dbug33415-2.phpt9 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
17 $tStamp = mktime (17, 17, 17, 1, 6476, 1970);
26 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
35 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
52 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
60 $tStamp = mktime (17, 17, 17, 1, 291, 1970);
69 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
78 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
111 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
135 $tStamp = mktime (17, 17, 17, 2, 3, 1979);
[all …]
H A DDateTimeZone_getTransitions_error.phpt19 $timestamp_begin = mktime(0, 0, 0, 1, 1, 1972);
20 $timestamp_end = mktime(0, 0, 0, 1, 1, 1975);
H A Didate_variation6.phpt18 $timestamp = mktime(8, 8, 8, 8, 8, 1970);
22 $timestamp = mktime(8, 8, 8, 8, 8, 2001);
H A Dbug74080.phpt6 $date = mktime(17, 52, 13, 4, 30, 2016);
H A Dmktime-3-64bit.phpt2 mktime() [3] (64-bit)
17 $ret = mktime(1, 1, 1, 1, 1, $year);
H A Dmktime-3.phpt2 mktime() [3] (32-bit)
17 $ret = mktime(1, 1, 1, 1, 1, $year);
H A Dbig_year.phpt9 $t = mktime(0,0,0,1,1,2922770265);
/PHP-7.3/ext/standard/tests/network/
H A Dbug72071.phpt8 $date = mktime(12, 25, 39, 4, 1, 2017);

Completed in 34 milliseconds

12345