2005-07-20 08:31:02 +00:00
|
|
|
--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");
|
2008-01-27 22:16:48 +00:00
|
|
|
$d[] = strtotime("@1121373041");
|
|
|
|
$d[] = strtotime("@1121373041 CEST");
|
2005-07-20 08:31:02 +00:00
|
|
|
|
|
|
|
foreach($d as $date) {
|
2005-11-27 06:51:43 +00:00
|
|
|
echo date(DATE_ISO8601, $date), "\n";
|
2005-07-20 08:31:02 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
2005-07-14T22:30:41+0200
|
|
|
|
2005-07-15T00:30:41+0200
|
2008-01-28 21:00:14 +00:00
|
|
|
2005-07-14T22:30:41+0200
|
|
|
|
2005-07-14T22:30:41+0200
|