Home
last modified time | relevance | path

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

12345

/PHP-5.6/ext/date/tests/
H A Dmktime-1.phpt2 Check for mktime with out-of-range parameters
11 echo date("Y-m-d", mktime( 12, 0, 0, 3, 0, 2000)) ."\n";
12 echo date("Y-m-d", mktime( 12, 0, 0, 3, -1, 2000)) ."\n";
13 echo date("Y-m-d", mktime( 12, 0, 0, 2, 29, 2000)) ."\n";
14 echo date("Y-m-d", mktime( 12, 0, 0, 3, 0, 2001)) ."\n";
15 echo date("Y-m-d", mktime( 12, 0, 0, 2, 29, 2001)) ."\n";
16 echo date("Y-m-d", mktime( 12, 0, 0, 0, 0, 2000)) ."\n";
20 echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,0))."\n";
21 echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,1))."\n";
26 echo date("Y-m-d H:i:s", mktime(12,0,0,5,-1,2000,0))."\n";
[all …]
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 Dbug27719.phpt8 $a = mktime(0, 0, 0, 4, 4, 2004, 0);
9 $b = mktime(0, 0, 0, 4, 4, 2004, 1);
10 $c = mktime(0, 0, 0, 4, 4, 2004, -1);
16 $a = mktime(0, 0, 0, 2, 4, 2004, 0);
17 $b = mktime(0, 0, 0, 2, 4, 2004, 1);
18 $c = mktime(0, 0, 0, 2, 4, 2004, -1);
24 $a = mktime(0, 0, 0, 4, 4, 2004, 0);
25 $b = mktime(0, 0, 0, 4, 4, 2004, 1);
26 $c = mktime(0, 0, 0, 4, 4, 2004, -1);
32 $a = mktime(3, 0, 0, 4, 4, 2004, 0);
[all …]
H A Dmktime_error.phpt2 Test mktime() function : error conditions
15 echo "*** Testing mktime() : error conditions ***\n";
17 echo "\n-- Testing mktime() function with Zero arguments --\n";
18 var_dump( mktime() );
20 echo "\n-- Testing mktime() function with more than expected no. of arguments --\n";
29 var_dump( mktime($hour, $minute, $sec, $month, $day, $year, $is_dst, $extra_arg) );
34 *** Testing mktime() : error conditions ***
36 -- Testing mktime() function with Zero arguments --
38 Strict Standards: mktime(): You should be using the time() function instead in %s on line %d
41 -- Testing mktime() function with more than expected no. of arguments --
[all …]
H A Dmktime-2.phpt2 mktime() [2]
17 var_dump(mktime(0, 0, 0, 1, 1, 2002));
19 var_dump(mktime(0, 0, 0, 1, 1, 2002, -1));
21 var_dump(mktime(0, 0, 0, 1, 1, 2002, 0));
23 var_dump(mktime(0, 0, 0, 1, 1, 2002, 1));
26 var_dump(mktime(0, 0, 0, 7, 1, 2002));
28 var_dump(mktime(0, 0, 0, 7, 1, 2002, -1));
30 var_dump(mktime(0, 0, 0, 7, 1, 2002, 0));
32 var_dump(mktime(0, 0, 0, 7, 1, 2002, 1));
H A Dmktime_variation7.phpt124 Deprecated: mktime(): The is_dst parameter is deprecated in %s on line %d
129 Deprecated: mktime(): The is_dst parameter is deprecated in %s on line %d
134 Deprecated: mktime(): The is_dst parameter is deprecated in %s on line %d
139 Deprecated: mktime(): The is_dst parameter is deprecated in %s on line %d
144 Deprecated: mktime(): The is_dst parameter is deprecated in %s on line %d
169 Deprecated: mktime(): The is_dst parameter is deprecated in %s on line %d
174 Deprecated: mktime(): The is_dst parameter is deprecated in %s on line %d
179 Deprecated: mktime(): The is_dst parameter is deprecated in %s on line %d
184 Deprecated: mktime(): The is_dst parameter is deprecated in %s on line %d
189 Deprecated: mktime(): The is_dst parameter is deprecated in %s on line %d
[all …]
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…
25 var_dump( mktime($hour) );
26 var_dump( mktime($hour, $minute) );
27 var_dump( mktime($hour, $minute, $sec) );
28 var_dump( mktime($hour, $minute, $sec, $month) );
29 var_dump( mktime($hour, $minute, $sec, $month, $day) );
30 var_dump( mktime($hour, $minute, $sec, $month, $day, $year) );
31 var_dump( mktime($hour, $minute, $sec, $month, $day, $year, $is_dst) );
44 Deprecated: mktime(): The is_dst parameter is deprecated in %s on line %d
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_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 long, array given in %s on line %d
143 Warning: mktime() expects parameter 1 to be long, array given in %s on line %d
148 Warning: mktime() expects parameter 1 to be long, array given in %s on line %d
153 Warning: mktime() expects parameter 1 to be long, array given in %s on line %d
176 Warning: mktime() expects parameter 1 to be long, string given in %s on line %d
181 Warning: mktime() expects parameter 1 to be long, string given in %s on line %d
186 Warning: mktime() expects parameter 1 to be long, string given in %s on line %d
191 Warning: mktime() expects parameter 1 to be long, 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 long, array given in %s on line %d
137 Warning: mktime() expects parameter 2 to be long, array given in %s on line %d
142 Warning: mktime() expects parameter 2 to be long, array given in %s on line %d
147 Warning: mktime() expects parameter 2 to be long, array given in %s on line %d
170 Warning: mktime() expects parameter 2 to be long, string given in %s on line %d
175 Warning: mktime() expects parameter 2 to be long, string given in %s on line %d
180 Warning: mktime() expects parameter 2 to be long, string given in %s on line %d
185 Warning: mktime() expects parameter 2 to be long, string given in %s on line %d
[all …]
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 long, array given in %s on line %d
138 Warning: mktime() expects parameter 3 to be long, array given in %s on line %d
143 Warning: mktime() expects parameter 3 to be long, array given in %s on line %d
148 Warning: mktime() expects parameter 3 to be long, array given in %s on line %d
171 Warning: mktime() expects parameter 3 to be long, string given in %s on line %d
176 Warning: mktime() expects parameter 3 to be long, string given in %s on line %d
181 Warning: mktime() expects parameter 3 to be long, string given in %s on line %d
186 Warning: mktime() expects parameter 3 to be long, 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 long, array given in %s on line %d
139 Warning: mktime() expects parameter 4 to be long, array given in %s on line %d
144 Warning: mktime() expects parameter 4 to be long, array given in %s on line %d
149 Warning: mktime() expects parameter 4 to be long, array given in %s on line %d
172 Warning: mktime() expects parameter 4 to be long, string given in %s on line %d
177 Warning: mktime() expects parameter 4 to be long, string given in %s on line %d
182 Warning: mktime() expects parameter 4 to be long, string given in %s on line %d
187 Warning: mktime() expects parameter 4 to be long, 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 long, array given in %s on line %d
140 Warning: mktime() expects parameter 5 to be long, array given in %s on line %d
145 Warning: mktime() expects parameter 5 to be long, array given in %s on line %d
150 Warning: mktime() expects parameter 5 to be long, array given in %s on line %d
173 Warning: mktime() expects parameter 5 to be long, string given in %s on line %d
178 Warning: mktime() expects parameter 5 to be long, string given in %s on line %d
183 Warning: mktime() expects parameter 5 to be long, string given in %s on line %d
188 Warning: mktime() expects parameter 5 to be long, 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 long, array given in %s on line %d
141 Warning: mktime() expects parameter 6 to be long, array given in %s on line %d
146 Warning: mktime() expects parameter 6 to be long, array given in %s on line %d
151 Warning: mktime() expects parameter 6 to be long, array given in %s on line %d
174 Warning: mktime() expects parameter 6 to be long, string given in %s on line %d
179 Warning: mktime() expects parameter 6 to be long, string given in %s on line %d
184 Warning: mktime() expects parameter 6 to be long, string given in %s on line %d
189 Warning: mktime() expects parameter 6 to be long, string given in %s on line %d
[all …]
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);
74 $tStamp = mktime (17, 17, 17, 1, 11777, 1970);
82 $tStamp = mktime (17, 17, 17, 1, 13056, 1970);
90 $tStamp = mktime (17, 17, 17, 1, 12140, 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 Dbug36988.phpt2 Bug #36988 (mktime freezes on long numbers)
7 $a = mktime(1, 1, 1, 1, 1, 11111111111);
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 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 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);
43 $tStamp = mktime (17, 17, 17, 1, 3767, 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);
[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 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);

Completed in 47 milliseconds

12345