Home
last modified time | relevance | path

Searched refs:gmdate (Results 1 – 25 of 26) sorted by relevance

12

/PHP-8.4/ext/date/tests/
H A Dgmdate_variation10.phpt12 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 Dgmdate_variation7.phpt5 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 Dgmdate_variation6.phpt12 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 Dgmdate_variation11.phpt5 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 Dgmdate_variation4.phpt5 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 Dgmdate_variation12_64bits.phpt9 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 Dgmdate_variation12.phpt9 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 Dbug17988.phpt7 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 Dgmdate_basic.phpt2 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 Dbug30096.phpt29 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 Dgmdate_variation5.phpt2 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 Dgmdate_variation3.phpt2 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 Dgmdate_variation13.phpt2 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 Dgmdate_variation9.phpt2 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 Dbug26198.phpt6 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 Dbug72096.phpt8 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 Dbug28088.phpt8 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 Dbug29585.phpt6 echo gmdate("Y-m-d H:i:s", strtotime("2004W30"));
H A Dbug21399.phpt7 echo gmdate("Y-m-d H:i:s", strtotime("20050620091407 GMT"));
H A Dbug28599.phpt6 print gmdate("d-m-Y H:i:s", strtotime("+30 minutes", 1100535573));
H A Dbug29150.phpt7 echo gmdate("Y-m-d H:i:s", strtotime("20 VI. 2005"));
H A Dbug26694.phpt7 echo gmdate("Y-m-d H:i:s", strtotime("Sun, 21 Dec 2003 20:38:33 +0000 GMT"));
H A Dbug33957.phpt2 Bug #33957 (gmdate('W')/date('W') sometimes returns wrong week number)
/PHP-8.4/ext/date/
H A Dphp_date.stub.php112 function gmdate(string $format, ?int $timestamp = null): string {} function
H A Dphp_date_arginfo.h522 ZEND_FUNCTION(gmdate);
623 ZEND_FE(gmdate, arginfo_gmdate)

Completed in 26 milliseconds

12