/php-src/ext/date/tests/ |
H A D | mktime_error.phpt | 2 Test mktime() function: error conditions 8 echo "*** Testing mktime() : error conditions ***\n"; 10 echo "\n-- Testing mktime() function with Zero arguments --\n"; 12 var_dump( mktime() ); 17 echo "\n-- Testing mktime() function with more than expected no. of arguments --\n"; 26 var_dump( mktime($hour, $minute, $sec, $month, $day, $year, $extra_arg) ); 33 *** Testing mktime() : error conditions *** 35 -- Testing mktime() function with Zero arguments -- 36 ArgumentCountError: mktime() expects at least 1 argument, 0 given 38 -- Testing mktime() function with more than expected no. of arguments -- [all …]
|
H A D | bug21966.phpt | 2 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 D | mktime_basic1.phpt | 2 Test mktime() function : basic functionality 17 var_dump( mktime($hour) ); 18 var_dump( mktime($hour, $minute) ); 19 var_dump( mktime($hour, $minute, $sec) ); 20 var_dump( mktime($hour, $minute, $sec, $month) ); 21 var_dump( mktime($hour, $minute, $sec, $month, $day) ); 22 var_dump( mktime($hour, $minute, $sec, $month, $day, $year) );
|
H A D | mktime-1.phpt | 2 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 D | sunfuncts.phpt | 10 echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_TIMESTAMP,31.76670,35.23330,90.83,2)." "; 11 echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_STRING,31.76670,35.23330,90.83,2)." "; 12 echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_DOUBLE,31.76670,35.23330,90.83,2)."\n"; 14 echo date_sunset(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_TIMESTAMP,31.76670,35.23330,90.83,2)." "; 15 echo date_sunset(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_STRING,31.76670,35.23330,90.83,2)." "; 16 echo date_sunset(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_DOUBLE,31.76670,35.23330,90.83,2)."\n";
|
H A D | gmdate_variation12.phpt | 15 $timestamp = mktime(20, 45, 54, 12, 13, 1901); 19 $timestamp = mktime(20, 45, 50, 12, 13, 1901); 23 $timestamp = mktime(03, 14, 07, 1, 19, 2038); 27 $timestamp = mktime(03, 14, 10, 1, 19, 2038); 39 Warning: mktime(): Epoch doesn't fit in a PHP integer in %s on line %d 47 Warning: mktime(): Epoch doesn't fit in a PHP integer in %s on line %d
|
H A D | bug36988.phpt | 2 Bug #36988 (mktime freezes on long numbers) 10 $a = mktime(1, 1, 1, 1, 1, 11111111111); 16 TypeError: mktime(): Argument #6 ($year) must be of type ?int, float given
|
H A D | gmdate_variation12_64bits.phpt | 14 $timestamp = mktime(20, 45, 54, 12, 13, 1901); 18 $timestamp = mktime(20, 45, 50, 12, 13, 1901); 23 $timestamp = mktime(03, 14, 07, 1, 19, 2038); 27 $timestamp = mktime(03, 14, 10, 1, 19, 2038);
|
H A D | bug33414-1.phpt | 9 $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 D | date_sunrise_variation8.phpt | 14 "12 Aug 2008" => mktime(8, 8, 8, 8, 12, 2008), 15 "13 Aug 2008" => mktime(8, 8, 8, 8, 13, 2008), 18 "12 Nov 2008" => mktime(8, 8, 8, 11, 12, 2008), 19 "13 Nov 2008" => mktime(8, 8, 8, 11, 13, 2008),
|
H A D | date_sunset_variation8.phpt | 14 "12 Aug 2008" => mktime(8, 8, 8, 8, 12, 2008), 15 "13 Aug 2008" => mktime(8, 8, 8, 8, 13, 2008), 18 "12 Nov 2008" => mktime(8, 8, 8, 11, 12, 2008), 19 "13 Nov 2008" => mktime(8, 8, 8, 11, 13, 2008),
|
H A D | bug33414-2.phpt | 7 $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 D | bug66545.phpt | 8 $debut = mktime(0, 0, 0, 10, 27, 2013); 9 $fin = mktime(23, 59, 59, 11, 10, 2013);
|
H A D | bug33415-2.phpt | 9 $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); 103 $tStamp = mktime (17, 17, 17, 1, 1, 1970); 127 $tStamp = mktime (17, 17, 17, 2, 3, 1979); [all …]
|
H A D | idate_variation6.phpt | 12 $timestamp = mktime(8, 8, 8, 8, 8, 1970); 16 $timestamp = mktime(8, 8, 8, 8, 8, 2001);
|
H A D | bug74080.phpt | 6 $date = mktime(17, 52, 13, 4, 30, 2016);
|
H A D | date_sunrise_variation7.phpt | 25 $time = mktime(8, 8, 8, 8, 11, 2008); 27 $time = mktime(8, 8, 8, 8, 12, 2008);
|
H A D | mktime-3.phpt | 2 mktime() [3] (32-bit) 17 $ret = @mktime(1, 1, 1, 1, 1, $year);
|
H A D | mktime-3-64bit.phpt | 2 mktime() [3] (64-bit) 17 $ret = mktime(1, 1, 1, 1, 1, $year);
|
H A D | big_year.phpt | 9 $t = mktime(0,0,0,1,1,2922770265);
|
H A D | bug33415-1.phpt | 9 $tStamp = mktime (17, 17, 17, 1, 7593, 1970); 17 $tStamp = mktime (17, 17, 17, 1, 12863, 1970);
|
H A D | date_sunset_variation7.phpt | 26 $time = mktime(8, 8, 8, 8, 11, 2008); 28 $time = mktime(8, 8, 8, 8, 12, 2008);
|
H A D | gmdate_variation7.phpt | 9 $timestamp = mktime(8, 8, 8, 8, 8, 2008); 10 $timestamp_non_leap_year = mktime(8, 8, 8, 8, 8, 2007);
|
/php-src/ext/standard/tests/network/ |
H A D | bug72071.phpt | 8 $date = mktime(12, 25, 39, 4, 1, 2017);
|
/php-src/ext/zip/tests/ |
H A D | oo_setmtime.phpt | 28 $t1 = mktime(0,0,0,12,25,2019); 29 $t2 = mktime(0,0,0,14,7,2018);
|