Home
last modified time | relevance | path

Searched refs:strtotime (Results 26 – 50 of 159) sorted by relevance

1234567

/php-src/ext/date/tests/
H A Dbug45081.phpt2 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 Dstrtotime_basic.phpt2 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 Dbug36510.phpt2 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 Dbug28024.phpt2 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 Dtimezone-configuration.phpt8 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 Dbug35218.phpt2 Bug #35218 (strtotime no longer ignores timezone comments like "(PST)")
9 var_dump(strtotime($date));
10 var_dump(strtotime($date_fixed));
H A Dbug35422.phpt2 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 Dbug35699.phpt7 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 Dbug33536.phpt2 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 Dbug51934.phpt2 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 Ddate_default_timezone_set-1.phpt12 $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 Dbug34676.phpt2 Bug #34676 (missing support for strtotime("midnight") and strtotime("noon"))
12 $t = strtotime("2005-12-22 ". $test);
H A Dbug35456.phpt9 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 Dbug70245.phpt2 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 Dbug26090.phpt2 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 Dbug26198.phpt2 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 Dbug67109.phpt7 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 Dbug26320.phpt2 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 Dbug35624.phpt2 Bug #35624 (strtotime() does not handle 3 character weekdays)
10 echo date("D", strtotime($day));
11 echo date("D", strtotime(ucfirst($day)));
H A Dbug26317.phpt13 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 Dstrtotime-mysql.phpt2 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 Dbug28088.phpt2 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 Dbug13142.phpt2 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 Dbug37368.phpt2 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 Dcalendar_isWeekend_basic.phpt13 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));

Completed in 27 milliseconds

1234567