/PHP-8.0/ext/date/tests/ |
H A D | bug74057.phpt | 2 Bug #74057: wrong day when using "this week" in strtotime 5 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Sun 2017-01-01")))."\n"; 6 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Mon 2017-01-02")))."\n"; 7 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Tue 2017-01-03")))."\n"; 8 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Wed 2017-01-04")))."\n"; 9 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Thu 2017-01-05")))."\n"; 10 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Fri 2017-01-06")))."\n"; 11 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Sat 2017-01-07")))."\n"; 12 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Sun 2017-01-08")))."\n"; 13 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Mon 2017-01-09")))."\n";
|
H A D | bug17988.phpt | 2 Bug #17988 (strtotime handling of postgresql timestamps) 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"; [all …]
|
H A D | bug40861.phpt | 2 Bug #40861 (Multiple +/- on relative units breaks strtotime()) 8 $ts = strtotime('2000-01-01 12:00:00'); 9 $result = date("Y-m-d H:i:s", strtotime("+$offset minutes", $ts)); 13 $ts = strtotime('2000-01-01 12:00:00'); 14 $result = date("Y-m-d H:i:s", strtotime("+$offset minutes", $ts)); 18 $ts = strtotime('2000-01-01 12:00:00'); 19 $result = date("Y-m-d H:i:s", strtotime("-$offset minutes", $ts)); 24 $ts = strtotime('2000-01-01 12:00:00'); 25 $result = date("Y-m-d H:i:s", strtotime("+$offset minutes", $ts));
|
H A D | bug33869.phpt | 2 Bug #33869 (strtotime() doesn't parse "+1days" format) 6 $tm = strtotime("2005-01-01 01:01:01"); 7 echo date(DATE_ISO8601, strtotime('+5days', $tm)); 9 echo date(DATE_ISO8601, strtotime('+1month', $tm)); 11 echo date(DATE_ISO8601, strtotime('+1year', $tm)); 13 echo date(DATE_ISO8601, strtotime('+5 days', $tm)); 15 echo date(DATE_ISO8601, strtotime('+1 month', $tm)); 17 echo date(DATE_ISO8601, strtotime('+1 year', $tm));
|
H A D | bug33578.phpt | 2 Bug #33578 (strtotime() doesn't parse "11 Oct" format") 6 echo date('m/d/Y', strtotime('Oct 11')), "\n"; 7 echo date('m/d/Y', strtotime('11 Oct')), "\n"; 8 echo date('m/d/Y', strtotime('11 Oct 2005')), "\n"; 9 echo date('m/d/Y', strtotime('Oct11')), "\n"; 10 echo date('m/d/Y', strtotime('11Oct')), "\n"; 11 echo date('m/d/Y', strtotime('11Oct 2005')), "\n"; 12 echo date('m/d/Y', strtotime('11Oct2005')), "\n";
|
H A D | bug34087.phpt | 2 Bug #34087 (strtotime() does not work with date format "Y/m/d") 6 echo "Y/m/d: ", strtotime("2005/8/12"), "\n"; 7 echo "Y-m-d: ", strtotime("2005-8-12"), "\n"; 9 echo date(DATE_ISO8601, strtotime("2005/1/2")), "\n"; 10 echo date(DATE_ISO8601, strtotime("2005/01/02")), "\n"; 11 echo date(DATE_ISO8601, strtotime("2005/01/2")), "\n"; 12 echo date(DATE_ISO8601, strtotime("2005/1/02")), "\n";
|
H A D | bug37514.phpt | 2 Bug #37514 (strtotime doesn't assume year correctly). 6 echo date('r', strtotime('May 18th 5:05', 1168156376)), "\n"; 7 echo date('r', strtotime('May 18th 5:05pm', 1168156376)), "\n"; 8 echo date('r', strtotime('May 18th 5:05 pm', 1168156376)), "\n"; 9 echo date('r', strtotime('May 18th 5:05am', 1168156376)), "\n"; 10 echo date('r', strtotime('May 18th 5:05 am', 1168156376)), "\n"; 11 echo date('r', strtotime('May 18th 2006 5:05pm', 1168156376)), "\n";
|
H A D | bug43452.phpt | 8 $day = strtotime( "Thursday Nov 2007" ); 10 $day = strtotime( "1 Thursday Nov 2007" ); 12 $day = strtotime( "2 Thursday Nov 2007" ); 14 $day = strtotime( "3 Thursday Nov 2007" ); 18 $day = strtotime( "Thursday Nov 2007" ); 30 $day = strtotime( "Thursday Nov 2007" ); 32 $day = strtotime( "first Thursday Nov 2007" ); 41 $day = strtotime( "Friday Nov 2007" ); 43 $day = strtotime( "first Friday Nov 2007" ); 45 $day = strtotime( "second Friday Nov 2007" ); [all …]
|
H A D | bug32086.phpt | 2 Bug #32086 (strtotime don't work in DST) 8 echo $g = strtotime("2004-11-01"), "\n"; 9 echo $i = strtotime("2004-11-01 +1 day"), "\n"; 10 echo $j = strtotime("+1 day", $g), "\n"; 11 echo $k = strtotime("2004-11-02"), "\n"; 12 echo $l = strtotime("2004-11-03"), "\n"; 19 echo $g = strtotime("2005-02-19"), "\n"; 20 echo $i = strtotime("2005-02-19 +1 day"), "\n"; 21 echo $j = strtotime("+1 day", $g), "\n"; 22 echo $k = strtotime("2005-02-20"), "\n"; [all …]
|
H A D | bug46111.phpt | 2 Bug #46111 (strtotime() returns false for some valid timezones) 9 print "[strtotime(timezone) == false - Begin List]\n"; 13 if (!strtotime($date_string)) { 17 print "[strtotime(timezone) == false - End List]\n"; 20 [strtotime(timezone) == false - Begin List] 21 [strtotime(timezone) == false - End List]
|
H A D | bug37017.phpt | 2 Bug #37017 (strtotime fails before 13:00:00 with some time zones identifiers). 6 echo strtotime("2006-05-12 13:00:01 America/New_York"), "\n"; 7 echo strtotime("2006-05-12 13:00:00 America/New_York"), "\n"; 8 echo strtotime("2006-05-12 12:59:59 America/New_York"), "\n"; 9 echo strtotime("2006-05-12 12:59:59 GMT"), "\n";
|
H A D | strtotime.phpt | 2 strtotime() function 7 $d[] = strtotime("2005-07-14 22:30:41"); 8 $d[] = strtotime("2005-07-14 22:30:41 GMT"); 9 $d[] = strtotime("@1121373041"); 10 $d[] = strtotime("@1121373041 CEST");
|
H A D | bug30532.phpt | 2 Bug #30532 (strtotime - crossing daylight savings time) 8 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +1 hour'))."\n"; 9 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +2 hours'))."\n"; 10 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +3 hours'))."\n"; 14 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +1 hour'))."\n"; 15 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +2 hours'))."\n"; 16 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +3 hours'))."\n";
|
H A D | bug35414.phpt | 2 Bug #35414 (strtotime() no longer works with ordinal suffix) 7 echo date(DATE_ISO8601, strtotime("Sat 26th Nov 2005 18:18")) . "\n"; 8 echo date(DATE_ISO8601, strtotime("26th Nov", 1134340285)) . "\n"; 9 echo date(DATE_ISO8601, strtotime("Dec. 4th, 2005")) . "\n"; 10 echo date(DATE_ISO8601, strtotime("December 4th, 2005")) . "\n";
|
H A D | bug33056.phpt | 2 Bug #33056 (strtotime() does not parse 20050518t090000Z) 6 echo strtotime('20050518t090000Z')."\n"; 7 echo strtotime('20050518t091234Z')."\n"; 8 echo strtotime('20050518t191234Z')."\n";
|
H A D | bug32555.phpt | 2 Bug #32555 (strtotime("tomorrow") can return false) 8 print date('r', strtotime('now',$stamp)) ."\n"; 9 print date('r', strtotime('tomorrow',$stamp)) ."\n"; 10 print date('r', strtotime('+1 day',$stamp)) ."\n"; 11 print date('r', strtotime('+2 day',$stamp)) ."\n";
|
H A D | bug69336.phpt | 7 var_dump(date('d.m.Y',strtotime('last day of april'))); 8 var_dump(date('d.m.Y',strtotime('last tuesday of march 2015'))); 9 var_dump(date('d.m.Y',strtotime('last wednesday of march 2015'))); 10 var_dump(date('d.m.Y',strtotime('last wednesday of april 2015'))); 11 var_dump(date('d.m.Y',strtotime('last wednesday of march 2014'))); 12 var_dump(date('d.m.Y',strtotime('last wednesday of april 2014')));
|
H A D | bug38229.phpt | 2 Bug #38229 (strtotime() does not parse YYYY-MM) 6 echo date("Y-m", strtotime('2006-1'))."\n"; 7 echo date("Y-m", strtotime('2006-03'))."\n"; 8 echo date("Y-m", strtotime('2006-12'))."\n";
|
H A D | bug33563.phpt | 2 Bug #33563 (strtotime('+1 month',$abc) cant get right time) 6 $strCurrDate = date('Y-m-d H:i:s',strtotime('2005-06-30 21:04:23')); 7 $strMonAfter = date('Y-m-d H:i:s',strtotime('+1 month',strtotime($strCurrDate)));
|
H A D | bug33957.phpt | 8 echo "1992-12-$i ", date("W", strtotime("1992-12-$i")), "\n"; 11 echo "1993-01-$i ", date("W", strtotime("1993-01-$i")), "\n"; 23 echo sprintf(" %02d-", date("W", strtotime("$year-12-$i"))); 24 echo sprintf("%04d ", date("o", strtotime("$year-12-$i"))); 31 echo sprintf(" %02d-", date("W", strtotime("$year-1-$i"))); 32 echo sprintf("%04d ", date("o", strtotime("$year-1-$i")));
|
H A D | strtotime_variation_scottish.phpt | 6 var_dump(date('H:i:s', strtotime('back of 7'))); 7 var_dump(date('H:i:s', strtotime('front of 7'))); 8 var_dump(date('H:i:s', strtotime('back of 19'))); 9 var_dump(date('H:i:s', strtotime('front of 19')));
|
H A D | bug14561.phpt | 2 Bug #14561 (strtotime() bug) 7 echo strtotime("19:30 Dec 17 2005"), "\n"; 8 echo strtotime("Dec 17 19:30 2005"), "\n";
|
H A D | bug32270.phpt | 2 Bug #32270 (strtotime/date behavior) 10 echo strtotime("Jan 1 1902")."\n"; 14 echo strtotime("Jan 1 1950")."\n"; 18 echo strtotime("Jan 1 2000")."\n";
|
H A D | bug32588.phpt | 2 Bug #32588 (strtotime() error for 'last xxx' DST problem) 8 echo date('D Y/m/d/H:i:s', strtotime('last saturday', 1112703348)). "\n"; 9 echo date('D Y/m/d/H:i:s', strtotime("last sunday", 1112703348)). "\n"; 10 echo date('D Y/m/d/H:i:s', strtotime('last monday', 1112703348)). "\n";
|
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');
|