mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
17 lines
316 B
PHP
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
|