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:
Daniel Convissor 2010-04-25 02:18:14 +00:00
parent d872a78a38
commit 3bc0480ad3

View file

@ -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>