/php-src/ext/date/tests/ |
H A D | gmdate_variation10.phpt | 12 var_dump( gmdate('e') ); 13 var_dump( gmdate('e', $timestamp) ); 16 var_dump( gmdate('I') ); 17 var_dump( gmdate('I', $timestamp) ); 20 var_dump( gmdate('O') ); 21 var_dump( gmdate('O', $timestamp) ); 24 var_dump( gmdate('P') ); 25 var_dump( gmdate('P', $timestamp) ); 28 var_dump( gmdate('T') ); 29 var_dump( gmdate('T', $timestamp) ); [all …]
|
H A D | gmdate_variation7.phpt | 5 echo "*** Testing gmdate() : usage variation ***\n"; 13 var_dump( gmdate('L', $timestamp_non_leap_year) ); 16 var_dump( gmdate('L') ); 17 var_dump( gmdate('L', $timestamp) ); 20 var_dump( gmdate('o') ); 21 var_dump( gmdate('o', $timestamp) ); 24 var_dump( gmdate('Y') ); 25 var_dump( gmdate('Y', $timestamp) ); 28 var_dump( gmdate('y') ); 29 var_dump( gmdate('y', $timestamp) ); [all …]
|
H A D | gmdate_variation6.phpt | 12 var_dump( gmdate('F') ); 13 var_dump( gmdate('F', $timestamp) ); 16 var_dump( gmdate('m') ); 17 var_dump( gmdate('m', $timestamp) ); 20 var_dump( gmdate('M') ); 21 var_dump( gmdate('M', $timestamp) ); 24 var_dump( gmdate('n') ); 25 var_dump( gmdate('n', $timestamp) ); 28 var_dump( gmdate('t') ); 29 var_dump( gmdate('t', $timestamp) ); [all …]
|
H A D | gmdate_variation11.phpt | 5 echo "*** Testing gmdate() : usage variation ***\n"; 11 echo "\n-- Testing gmdate() function with ISO 8601 date format --\n"; 12 var_dump( gmdate('c') ); 13 var_dump( gmdate('c', $timestamp) ); 16 var_dump( gmdate('r') ); 17 var_dump( gmdate('r', $timestamp) ); 20 var_dump( gmdate('U') ); 21 var_dump( gmdate('U', $timestamp) ); 25 *** Testing gmdate() : usage variation *** 27 -- Testing gmdate() function with ISO 8601 date format -- [all …]
|
H A D | gmdate_variation4.phpt | 5 echo "*** Testing gmdate() : usage variation ***\n"; 12 var_dump( gmdate('D') ); 13 var_dump( gmdate('D', $timestamp) ); 16 var_dump( gmdate('l') ); 17 var_dump( gmdate('l', $timestamp) ); 19 echo "\n-- Testing gmdate() function with English ordinal suffix --\n"; 20 var_dump( gmdate('S') ); 21 var_dump( gmdate('S', $timestamp) ); 25 *** Testing gmdate() : usage variation *** 31 -- Testing gmdate() function with full textual representation of day -- [all …]
|
H A D | gmdate_variation12_64bits.phpt | 9 echo "*** Testing gmdate() : usage variation ***\n"; 15 echo "\n-- Testing gmdate() function with minimum range of timestamp --\n"; 16 var_dump( gmdate(DATE_ISO8601, $timestamp) ); 20 var_dump( gmdate(DATE_ISO8601, $timestamp) ); 24 var_dump( gmdate(DATE_ISO8601, $timestamp) ); 28 var_dump( gmdate(DATE_ISO8601, $timestamp) ); 32 *** Testing gmdate() : usage variation *** 34 -- Testing gmdate() function with minimum range of timestamp -- 37 -- Testing gmdate() function with less than the range of timestamp -- 40 -- Testing gmdate() function with maximum range of timestamp -- [all …]
|
H A D | gmdate_variation12.phpt | 9 echo "*** Testing gmdate() : usage variation ***\n"; 14 echo "\n-- Testing gmdate() function with minimum range of timestamp --\n"; 16 var_dump( gmdate(DATE_ISO8601, $timestamp) ); 20 var_dump( gmdate(DATE_ISO8601, $timestamp) ); 24 var_dump( gmdate(DATE_ISO8601, $timestamp) ); 28 var_dump( gmdate(DATE_ISO8601, $timestamp) ); 32 *** Testing gmdate() : usage variation *** 34 -- Testing gmdate() function with minimum range of timestamp -- 37 -- Testing gmdate() function with less than the range of timestamp -- 42 -- Testing gmdate() function with maximum range of timestamp -- [all …]
|
H A D | bug17988.phpt | 7 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728"))."\n"; 8 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 GMT"))."\n"; 9 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 EDT"))."\n"; 10 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-00"))."\n"; 11 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+00"))."\n"; 12 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-04"))."\n"; 13 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+04"))."\n"; 14 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-0300"))."\n"; 15 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+0300"))."\n"; 16 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-0330"))."\n"; [all …]
|
H A D | gmdate_basic.phpt | 2 Test gmdate() function : basic functionality 5 echo "*** Testing gmdate() : basic functionality ***\n"; 12 // Calling gmdate() with all possible arguments 13 var_dump( gmdate($format, $timestamp) ); 15 // Calling gmdate() with mandatory arguments 16 var_dump( gmdate($format) ); 20 *** Testing gmdate() : basic functionality ***
|
H A D | bug30096.phpt | 29 echo $ts, " | gmdate('r', $ts):", gmdate('r', $ts); 39 gmmktime(1,0,0,3,27,2005): 1111885200 | gmdate('r', 1111885200):Sun, 27 Mar 2005 01:00:00 +0000 40 gmmktime(2,0,0,3,27,2005): 1111888800 | gmdate('r', 1111888800):Sun, 27 Mar 2005 02:00:00 +0000 | D… 41 gmmktime(3,0,0,3,27,2005): 1111892400 | gmdate('r', 1111892400):Sun, 27 Mar 2005 03:00:00 +0000 | D… 42 gmmktime(4,0,0,3,27,2005): 1111896000 | gmdate('r', 1111896000):Sun, 27 Mar 2005 04:00:00 +0000 | D… 45 gmmktime(1,0,0,10,30,2005): 1130634000 | gmdate('r', 1130634000):Sun, 30 Oct 2005 01:00:00 +0000 46 gmmktime(2,0,0,10,30,2005): 1130637600 | gmdate('r', 1130637600):Sun, 30 Oct 2005 02:00:00 +0000 | … 47 gmmktime(3,0,0,10,30,2005): 1130641200 | gmdate('r', 1130641200):Sun, 30 Oct 2005 03:00:00 +0000 | … 48 gmmktime(4,0,0,10,30,2005): 1130644800 | gmdate('r', 1130644800):Sun, 30 Oct 2005 04:00:00 +0000 | …
|
H A D | gmdate_variation5.phpt | 2 Test gmdate() function : usage variation - Passing Week representation to format. 5 echo "*** Testing gmdate() : usage variation ***\n"; 11 echo "\n-- Testing gmdate() function with ISO-8601 week number of year format --\n"; 12 var_dump( gmdate('W') ); 13 var_dump( gmdate('W', $timestamp) ); 17 *** Testing gmdate() : usage variation *** 19 -- Testing gmdate() function with ISO-8601 week number of year format --
|
H A D | gmdate_variation3.phpt | 2 Test gmdate() function : usage variation - Passing numeric representation of day formats. 5 echo "*** Testing gmdate() : usage variation ***\n"; 25 var_dump( gmdate($value) ); 26 var_dump( gmdate($value, $timestamp) ); 31 *** Testing gmdate() : usage variation ***
|
H A D | gmdate_variation13.phpt | 2 Test gmdate() function : usage variation - Passing predefined constants to format argument. 5 echo "*** Testing gmdate() : usage variation ***\n"; 29 var_dump( gmdate($value, $timestamp) ); 30 var_dump( gmdate($value) ); 35 *** Testing gmdate() : usage variation ***
|
H A D | gmdate_variation9.phpt | 2 Test gmdate() function : usage variation - Passing Time format options to format argument. 5 echo "*** Testing gmdate() : usage variation ***\n"; 27 var_dump( gmdate($value) ); 28 var_dump( gmdate($value, $timestamp) ); 33 *** Testing gmdate() : usage variation ***
|
H A D | bug26198.phpt | 6 echo gmdate("F Y (Y-m-d H:i:s T)\n", strtotime("Oct 2001")); 7 echo gmdate("M Y (Y-m-d H:i:s T)\n", strtotime("2001 Oct"));
|
H A D | bug72096.phpt | 8 echo "Time:", gmdate('Y-m-d H:i:s = B', $unix), PHP_EOL; 9 echo "Time:", gmdate('Y-m-d H:i:s = B', $unix - 82 * 365 * 24 * 3600), PHP_EOL;
|
H A D | bug28088.phpt | 8 echo gmdate("m/d/y Hi", strtotime("04/04/04 2345")), "\n"; 11 echo gmdate("m/d/y Hi", strtotime("04/04/04 0045"))."\r\n";
|
H A D | bug29585.phpt | 6 echo gmdate("Y-m-d H:i:s", strtotime("2004W30"));
|
H A D | bug21399.phpt | 7 echo gmdate("Y-m-d H:i:s", strtotime("20050620091407 GMT"));
|
H A D | bug28599.phpt | 6 print gmdate("d-m-Y H:i:s", strtotime("+30 minutes", 1100535573));
|
H A D | bug29150.phpt | 7 echo gmdate("Y-m-d H:i:s", strtotime("20 VI. 2005"));
|
H A D | bug26694.phpt | 7 echo gmdate("Y-m-d H:i:s", strtotime("Sun, 21 Dec 2003 20:38:33 +0000 GMT"));
|
H A D | bug33957.phpt | 2 Bug #33957 (gmdate('W')/date('W') sometimes returns wrong week number)
|
/php-src/ext/date/ |
H A D | php_date.stub.php | 112 function gmdate(string $format, ?int $timestamp = null): string {} function
|
H A D | php_date_arginfo.h | 522 ZEND_FUNCTION(gmdate); 623 ZEND_FE(gmdate, arginfo_gmdate)
|