Home
last modified time | relevance | path

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

1234

/php-src/ext/date/tests/
H A Dmktime_error.phpt2 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 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_basic1.phpt2 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 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 Dsunfuncts.phpt10 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 Dgmdate_variation12.phpt15 $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 Dbug36988.phpt2 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 Dgmdate_variation12_64bits.phpt14 $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 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 Ddate_sunrise_variation8.phpt14 "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 Ddate_sunset_variation8.phpt14 "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 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 Dbug66545.phpt8 $debut = mktime(0, 0, 0, 10, 27, 2013);
9 $fin = mktime(23, 59, 59, 11, 10, 2013);
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);
103 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
127 $tStamp = mktime (17, 17, 17, 2, 3, 1979);
[all …]
H A Didate_variation6.phpt12 $timestamp = mktime(8, 8, 8, 8, 8, 1970);
16 $timestamp = mktime(8, 8, 8, 8, 8, 2001);
H A Dbug74080.phpt6 $date = mktime(17, 52, 13, 4, 30, 2016);
H A Ddate_sunrise_variation7.phpt25 $time = mktime(8, 8, 8, 8, 11, 2008);
27 $time = mktime(8, 8, 8, 8, 12, 2008);
H A Dmktime-3.phpt2 mktime() [3] (32-bit)
17 $ret = @mktime(1, 1, 1, 1, 1, $year);
H A Dmktime-3-64bit.phpt2 mktime() [3] (64-bit)
17 $ret = mktime(1, 1, 1, 1, 1, $year);
H A Dbig_year.phpt9 $t = mktime(0,0,0,1,1,2922770265);
H A Dbug33415-1.phpt9 $tStamp = mktime (17, 17, 17, 1, 7593, 1970);
17 $tStamp = mktime (17, 17, 17, 1, 12863, 1970);
H A Ddate_sunset_variation7.phpt26 $time = mktime(8, 8, 8, 8, 11, 2008);
28 $time = mktime(8, 8, 8, 8, 12, 2008);
H A Dgmdate_variation7.phpt9 $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 Dbug72071.phpt8 $date = mktime(12, 25, 39, 4, 1, 2017);
/php-src/ext/zip/tests/
H A Doo_setmtime.phpt28 $t1 = mktime(0,0,0,12,25,2019);
29 $t2 = mktime(0,0,0,14,7,2018);

Completed in 35 milliseconds

1234