/PHP-5.3/ext/date/tests/ |
H A D | gmdate_variation10.phpt | 18 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 D | gmdate_variation7.phpt | 11 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 D | gmdate_variation8.phpt | 11 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 D | gmdate_variation6.phpt | 18 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 D | gmdate_variation11.phpt | 5 /* 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 D | gmdate_variation4.phpt | 5 /* 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 D | gmdate_variation12.phpt | 2 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 D | gmdate_error.phpt | 2 Test gmdate() function : error conditions 5 /* Prototype : string gmdate(string format [, long timestamp]) 11 echo "*** Testing gmdate() : error conditions ***\n"; 19 echo "\n-- Testing gmdate() function with Zero arguments --\n"; 20 var_dump( gmdate() ); 22 //Test gmdate with one more than the expected number of arguments 25 var_dump( gmdate($format, $timestamp, $extra_arg) ); 30 *** Testing gmdate() : error conditions *** 32 -- Testing gmdate() function with Zero arguments -- 34 Warning: gmdate() expects at least 1 parameter, 0 given in %s on line %d [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 MET"))."\n"; 10 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 MEST"))."\n"; 11 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 EDT"))."\n"; 12 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-00"))."\n"; 13 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+00"))."\n"; 14 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-04"))."\n"; 15 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+04"))."\n"; 16 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-0300"))."\n"; [all …]
|
H A D | gmdate_variation14.phpt | 2 Test gmdate() function : usage variation - Passing high positive and negetive float values to times… 5 /* Prototype : string gmdate(string format [, long timestamp]) 10 echo "*** Testing gmdate() : usage variation ***\n"; 16 echo "\n-- Testing gmdate() function with float 12.3456789000e10 to timestamp --\n"; 18 var_dump( gmdate($format, $timestamp) ); 20 echo "\n-- Testing gmdate() function with float -12.3456789000e10 to timestamp --\n"; 22 var_dump( gmdate($format, $timestamp) ); 27 \*\*\* Testing gmdate\(\) : usage variation \*\*\* 29 -- Testing gmdate\(\) function with float 12.3456789000e10 to timestamp -- 32 -- Testing gmdate\(\) function with float -12.3456789000e10 to timestamp --
|
H A D | gmdate_basic.phpt | 2 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 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 /* 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 D | gmdate_variation2.phpt | 2 Test gmdate() function : usage variation - Passing unexpected values to timestamp argument. 5 /* Prototype : string gmdate(string format [, long timestamp]) 11 echo "*** Testing gmdate() : usage variation ***\n"; 98 var_dump( gmdate($format, $value) ); 104 *** Testing gmdate() : usage variation *** 129 Warning: gmdate() expects parameter 2 to be long, array given in %s on line %d 134 Warning: gmdate() expects parameter 2 to be long, array given in %s on line %d 139 Warning: gmdate() expects parameter 2 to be long, array given in %s on line %d 144 Warning: gmdate() expects parameter 2 to be long, array given in %s on line %d 167 Warning: gmdate() expects parameter 2 to be long, string given in %s on line %d [all …]
|
H A D | gmdate_variation1.phpt | 2 Test gmdate() function : usage variation - Passing unexpected values to format argument . 5 /* Prototype : string gmdate(string format [, long timestamp]) 11 echo "*** Testing gmdate() : usage variation ***\n"; 93 var_dump( gmdate($value, $timestamp) ); 94 var_dump( gmdate($value) ); 100 *** Testing gmdate() : usage variation *** 140 Warning: gmdate() expects parameter 1 to be string, array given in %s on line %d 143 Warning: gmdate() expects parameter 1 to be string, array given in %s on line %d 148 Warning: gmdate() expects parameter 1 to be string, array given in %s on line %d 151 Warning: gmdate() expects parameter 1 to be string, array given in %s on line %d [all …]
|
H A D | gmdate_variation3.phpt | 2 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 D | gmdate_variation13.phpt | 2 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 D | gmdate_variation9.phpt | 2 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 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 | 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"));
|