php-src/ext/date/tests/strtotime.phpt
Derick Rethans 1394b48d21 - Reintroduced the normal constants.
- 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.
2005-12-19 12:57:49 +00:00

17 lines
316 B
PHP

--TEST--
strtotime() function
--FILE--
<?php
date_default_timezone_set('Europe/Oslo');
$d = array();
$d[] = strtotime("2005-07-14 22:30:41");
$d[] = strtotime("2005-07-14 22:30:41 GMT");
foreach($d as $date) {
echo date(DATE_ISO8601, $date), "\n";
}
?>
--EXPECT--
2005-07-14T22:30:41+0200
2005-07-15T00:30:41+0200