mirror of
https://github.com/php/php-src.git
synced 2024-12-20 15:30:38 +08:00
1394b48d21
- Made the test cases work with the normal non-class constants. - Merged new timelib, which is a bit more cleverer - Support "UTC" in strtotime() properly. - Added astro code, which is going to form the base for the new sunfuncs.
17 lines
497 B
PHP
17 lines
497 B
PHP
--TEST--
|
|
Bug #35414 (strtotime() no longer works with ordinal suffix)
|
|
--FILE--
|
|
<?php
|
|
date_default_timezone_set("UTC");
|
|
|
|
echo date(DATE_ISO8601, strtotime("Sat 26th Nov 2005 18:18")) . "\n";
|
|
echo date(DATE_ISO8601, strtotime("26th Nov", 1134340285)) . "\n";
|
|
echo date(DATE_ISO8601, strtotime("Dec. 4th, 2005")) . "\n";
|
|
echo date(DATE_ISO8601, strtotime("December 4th, 2005")) . "\n";
|
|
?>
|
|
--EXPECT--
|
|
2005-11-26T18:18:00+0000
|
|
2005-11-26T00:00:00+0000
|
|
2005-12-04T00:00:00+0000
|
|
2005-12-04T00:00:00+0000
|