Home
last modified time | relevance | path

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

/PHP-7.4/ext/date/tests/
H A Dgmdate_variation10.phpt18 var_dump( gmdate('e') );
19 var_dump( gmdate('e', $timestamp) );
22 var_dump( gmdate('I') );
23 var_dump( gmdate('I', $timestamp) );
26 var_dump( gmdate('O') );
27 var_dump( gmdate('O', $timestamp) );
30 var_dump( gmdate('P') );
31 var_dump( gmdate('P', $timestamp) );
34 var_dump( gmdate('T') );
35 var_dump( gmdate('T', $timestamp) );
[all …]
H A Dgmdate_variation7.phpt11 echo "*** Testing gmdate() : usage variation ***\n";
19 var_dump( gmdate('L', $timestamp_non_leap_year) );
22 var_dump( gmdate('L') );
23 var_dump( gmdate('L', $timestamp) );
26 var_dump( gmdate('o') );
27 var_dump( gmdate('o', $timestamp) );
30 var_dump( gmdate('Y') );
31 var_dump( gmdate('Y', $timestamp) );
34 var_dump( gmdate('y') );
35 var_dump( gmdate('y', $timestamp) );
[all …]
H A Dgmdate_variation6.phpt18 var_dump( gmdate('F') );
19 var_dump( gmdate('F', $timestamp) );
22 var_dump( gmdate('m') );
23 var_dump( gmdate('m', $timestamp) );
26 var_dump( gmdate('M') );
27 var_dump( gmdate('M', $timestamp) );
30 var_dump( gmdate('n') );
31 var_dump( gmdate('n', $timestamp) );
34 var_dump( gmdate('t') );
35 var_dump( gmdate('t', $timestamp) );
[all …]
H A Dgmdate_variation11.phpt5 /* Prototype : string gmdate(string format [, long timestamp])
11 echo "*** Testing gmdate() : usage variation ***\n";
18 var_dump( gmdate('c') );
19 var_dump( gmdate('c', $timestamp) );
22 var_dump( gmdate('r') );
23 var_dump( gmdate('r', $timestamp) );
26 var_dump( gmdate('U') );
27 var_dump( gmdate('U', $timestamp) );
32 *** Testing gmdate() : usage variation ***
34 -- Testing gmdate() function with ISO 8601 date format --
[all …]
H A Dgmdate_variation4.phpt5 /* Prototype : string gmdate(string format [, long timestamp])
11 echo "*** Testing gmdate() : usage variation ***\n";
18 var_dump( gmdate('D') );
19 var_dump( gmdate('D', $timestamp) );
22 var_dump( gmdate('l') );
23 var_dump( gmdate('l', $timestamp) );
25 echo "\n-- Testing gmdate() function with English ordinal suffix --\n";
26 var_dump( gmdate('S') );
27 var_dump( gmdate('S', $timestamp) );
32 *** Testing gmdate() : usage variation ***
[all …]
H A Dgmdate_variation12.phpt2 Test gmdate() function : usage variation - Valid and invalid range of timestamp.
5 /* Prototype : string gmdate(string format [, long timestamp])
11 echo "*** Testing gmdate() : usage variation ***\n";
18 var_dump( gmdate(DATE_ISO8601, $timestamp) );
22 var_dump( gmdate(DATE_ISO8601, $timestamp) );
26 var_dump( gmdate(DATE_ISO8601, $timestamp) );
30 var_dump( gmdate(DATE_ISO8601, $timestamp) );
35 \*\*\* Testing gmdate\(\) : usage variation \*\*\*
37 -- Testing gmdate\(\) function with minimum range of timestamp --
40 -- Testing gmdate\(\) function with less than the 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_variation14.phpt7 /* Prototype : string gmdate(string format [, long timestamp])
12 echo "*** Testing gmdate() : usage variation ***\n";
18 echo "\n-- Testing gmdate() function with float 12.3456789000e10 to timestamp --\n";
20 var_dump( gmdate($format, $timestamp) );
22 echo "\n-- Testing gmdate() function with float -12.3456789000e10 to timestamp --\n";
24 var_dump( gmdate($format, $timestamp) );
29 *** Testing gmdate() : usage variation ***
31 -- Testing gmdate() function with float 12.3456789000e10 to timestamp --
33 Warning: gmdate() expects parameter 2 to be int, float given in %s on line %d
36 -- Testing gmdate() function with float -12.3456789000e10 to timestamp --
[all …]
H A Dgmdate_basic.phpt2 Test gmdate() function : basic functionality
5 /* Prototype : string gmdate(string format [, long timestamp])
11 echo "*** Testing gmdate() : basic functionality ***\n";
18 // Calling gmdate() with all possible arguments
19 var_dump( gmdate($format, $timestamp) );
21 // Calling gmdate() with mandatory arguments
22 var_dump( gmdate($format) );
27 *** 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 /* Prototype : string gmdate(string format [, long timestamp])
11 echo "*** Testing gmdate() : usage variation ***\n";
17 echo "\n-- Testing gmdate() function with ISO-8601 week number of year format --\n";
18 var_dump( gmdate('W') );
19 var_dump( gmdate('W', $timestamp) );
24 *** Testing gmdate() : usage variation ***
26 -- 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 /* Prototype : string gmdate(string format [, long timestamp])
11 echo "*** Testing gmdate() : usage variation ***\n";
31 var_dump( gmdate($value) );
32 var_dump( gmdate($value, $timestamp) );
38 *** Testing gmdate() : usage variation ***
H A Dgmdate_variation13.phpt2 Test gmdate() function : usage variation - Passing predefined constants to format argument.
5 /* Prototype : string gmdate(string format [, long timestamp])
10 echo "*** Testing gmdate() : usage variation ***\n";
34 var_dump( gmdate($value, $timestamp) );
35 var_dump( gmdate($value) );
41 *** Testing gmdate() : usage variation ***
H A Dgmdate_variation9.phpt2 Test gmdate() function : usage variation - Passing Time format options to format argument.
5 /* Prototype : string gmdate(string format [, long timestamp])
11 echo "*** Testing gmdate() : usage variation ***\n";
33 var_dump( gmdate($value) );
34 var_dump( gmdate($value, $timestamp) );
40 *** 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-7.4/ext/date/
H A Dphp_date.h33 PHP_FUNCTION(gmdate);
H A Dphp_date.c424 PHP_FE(gmdate, arginfo_gmdate)
1430 PHP_FUNCTION(gmdate) in PHP_FUNCTION() argument

Completed in 81 milliseconds