mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Adjust timezone in example to make output a clearer difference.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@298457 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d872a78a38
commit
3bc0480ad3
1 changed files with 3 additions and 3 deletions
|
@ -73,7 +73,7 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$date = new DateTime('2000-01-01', new DateTimeZone('Asia/Katmandu'));
|
||||
$date = new DateTime('2000-01-01', new DateTimeZone('Pacific/Nauru'));
|
||||
echo $date->format('Y-m-d H:i:sP') . "\n";
|
||||
|
||||
$date->setTimezone(new DateTimeZone('Pacific/Chatham'));
|
||||
|
@ -84,8 +84,8 @@ echo $date->format('Y-m-d H:i:sP') . "\n";
|
|||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
2000-01-01 00:00:00+05:45
|
||||
2000-01-01 08:00:00+13:45
|
||||
2000-01-01 00:00:00+12:00
|
||||
2000-01-01 01:45:00+13:45
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
|
|
Loading…
Reference in a new issue