/php-src/ext/date/tests/ |
H A D | bug45081.phpt | 2 Bug #45081 (strtotime incorrectly interprets SGT time zone) 8 print strtotime('2008-05-23 00:00:00 +08'); 10 print strtotime('2008-05-23 00:00:00');
|
H A D | strtotime_basic.phpt | 2 strtotime() function - a test to show the difference in behaviour between 'first' and '1', "second"… 14 var_dump(date('Y-m-d', strtotime('1 Monday December 2008'))); 19 var_dump(date('Y-m-d', strtotime('2 Monday December 2008'))); 24 var_dump(date('Y-m-d', strtotime('3 Monday December 2008'))); 28 var_dump(date('Y-m-d', strtotime('first Monday December 2008'))); 32 var_dump(date('Y-m-d', strtotime('second Monday December 2008'))); 36 var_dump(date('Y-m-d', strtotime('third Monday December 2008')));
|
H A D | bug36510.phpt | 2 Bug #36510 (strtotime() fails to parse date strings with tabs) 9 var_dump(strtotime("-2 hours", $t)); 10 var_dump(strtotime("-2\thours", $t));
|
H A D | bug28024.phpt | 2 Bug #28024 (Changed behavior of strtotime()) 7 echo strtotime("17:00 2004-01-01"), "\n"; 8 echo date("Y-m-d H:i:s T", strtotime("17:00 2004-01-01"));
|
H A D | timezone-configuration.phpt | 8 echo strtotime("2005-06-18 22:15:44"), "\n"; 11 echo strtotime("2005-06-18 22:15:44"), "\n"; 14 echo strtotime("2005-06-18 22:15:44"), "\n";
|
H A D | bug35218.phpt | 2 Bug #35218 (strtotime no longer ignores timezone comments like "(PST)") 9 var_dump(strtotime($date)); 10 var_dump(strtotime($date_fixed));
|
H A D | bug35422.phpt | 2 Bug #35422 (strtotime() does not parse times with UTC as timezone) 7 echo date(DATE_ISO8601, strtotime("July 1, 2000 00:00:00 UTC")) . "\n"; 8 echo date(DATE_ISO8601, strtotime("July 1, 2000 00:00:00 GMT")) . "\n";
|
H A D | bug35699.phpt | 7 echo date(DATE_ISO8601, strtotime('1964-06-06')), "\n"; 8 echo date(DATE_ISO8601, strtotime('1963-06-06')), "\n"; 9 echo date(DATE_ISO8601, strtotime('1964-01-06')), "\n";
|
H A D | bug33536.phpt | 2 Bug #33456 (strtotime defaults to now even on non time string) 6 var_dump(strtotime("monkey")); 7 print date("Y-m-d", strtotime("monkey")) ."\n";
|
H A D | bug51934.phpt | 2 Bug #51934 (strtotime plurals / incorrect time) 7 echo date("Y-m-d H:i:s", strtotime("2010-05-27 19:18 4 Sunday ago")), "\n"; 8 echo date("Y-m-d H:i:s", strtotime("2010-05-27 19:18 4 Sundays ago")), "\n";
|
H A D | date_default_timezone_set-1.phpt | 12 $date1 = strtotime("2005-01-12 08:00:00"); 13 $date2 = strtotime("2005-07-12 08:00:00"); 15 $date3 = strtotime("2005-01-12 08:00:00"); 16 $date4 = strtotime("2005-07-12 08:00:00");
|
H A D | bug34676.phpt | 2 Bug #34676 (missing support for strtotime("midnight") and strtotime("noon")) 12 $t = strtotime("2005-12-22 ". $test);
|
H A D | bug35456.phpt | 9 echo date(DATE_ISO8601, strtotime("+ 1 day", $t)) . "\n"; 10 echo date(DATE_ISO8601, strtotime("+ 1 month", $t)) . "\n"; 11 echo date(DATE_ISO8601, strtotime("+ 1 week", $t)) . "\n";
|
H A D | bug70245.phpt | 2 Bug #70245 (strtotime does not emit warning when 2nd parameter is object or string) 7 var_dump(strtotime('-1 month', $d)); 13 TypeError: strtotime(): Argument #2 ($baseTimestamp) must be of type ?int, DateTime given
|
H A D | bug26090.phpt | 2 Bug #26090 (allow colons in time zone offset to strtotime()) 8 echo date('Y-m-d H:i:s T', strtotime($t)) . "\n"; 11 echo date('Y-m-d H:i:s T', strtotime($t)) . "\n";
|
H A D | bug26198.phpt | 2 Bug #26198 (strtotime handling of "M Y" and "Y M" format) 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 | bug67109.phpt | 7 var_dump(date('d.m.Y',strtotime('last day of april'))); 8 var_dump(date('d.m.Y',strtotime('Last day of april'))); 9 var_dump(date('d.m.Y',strtotime('lAst Day of April')));
|
H A D | bug26320.phpt | 2 Bug #26320 (strtotime handling of XML Schema/ISO 8601 format) 13 echo date("Y-m-d H:i:s\n", strtotime("2003-11-19T12:30:42")); 14 echo date("Y-m-d H:i:s\n", strtotime("2003-11-19T12:30:42Z"));
|
H A D | bug35624.phpt | 2 Bug #35624 (strtotime() does not handle 3 character weekdays) 10 echo date("D", strtotime($day)); 11 echo date("D", strtotime(ucfirst($day)));
|
H A D | bug26317.phpt | 13 echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 16:20:42 Z")); 14 echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 09:20:42 T")); 15 echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 19:20:42 C"));
|
H A D | strtotime-mysql.phpt | 2 strtotime() and mysql timestamps (32 bit) 15 $time = strtotime($date); 28 Warning: strtotime(): Epoch doesn't fit in a PHP integer in %s on line %d
|
H A D | bug28088.phpt | 2 Bug #28088 (strtotime() cannot convert 00 hours") 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 | bug13142.phpt | 2 Bug #13142 (strtotime handling of "M d H:i:s Y" format) 20 echo date("r\n", strtotime("Sep 04 16:39:45 2001")); 21 echo date("r\n", strtotime("Sep 04 2001 16:39:45"));
|
H A D | bug37368.phpt | 2 Bug #37368 (Incorrect timestamp returned for strtotime()). 6 echo date("r", strtotime("Mon, 08 May 2006 13:06:44 -0400 +30 days"));
|
/php-src/ext/intl/tests/ |
H A D | calendar_isWeekend_basic.phpt | 13 var_dump($intlcal->isWeekend(strtotime('2012-02-29 12:00:00 +0000') * 1000)); 14 var_dump(intlcal_is_weekend($intlcal, strtotime('2012-02-29 12:00:00 +0000') * 1000)); 15 var_dump($intlcal->isWeekend(strtotime('2012-03-11 12:00:00 +0000') * 1000));
|