mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
23 lines
454 B
PHP
23 lines
454 B
PHP
--TEST--
|
|
date() function
|
|
--FILE--
|
|
<?php
|
|
$tmp = "cr";
|
|
date_default_timezone_set('UTC');
|
|
|
|
for($a = 0;$a < strlen($tmp); $a++){
|
|
echo $tmp[$a], ': ', date($tmp[$a], 1043324459)."\n";
|
|
}
|
|
|
|
date_default_timezone_set("MET");
|
|
|
|
for($a = 0;$a < strlen($tmp); $a++){
|
|
echo $tmp[$a], ': ', date($tmp[$a], 1043324459)."\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
c: 2003-01-23T12:20:59+00:00
|
|
r: Thu, 23 Jan 2003 12:20:59 +0000
|
|
c: 2003-01-23T13:20:59+01:00
|
|
r: Thu, 23 Jan 2003 13:20:59 +0100
|