svn: /phpdoc/en/trunk/reference/datetime/datetime/ settimezone.xml

From: Date: Sun, 25 Apr 2010 02:18:14 +0000
Subject: svn: /phpdoc/en/trunk/reference/datetime/datetime/ settimezone.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-6440@lists.php.net to get a copy of this message
danielc Sun, 25 Apr 2010 02:18:14 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=298457 Log: Adjust timezone in example to make output a clearer difference. Changed paths: U phpdoc/en/trunk/reference/datetime/datetime/settimezone.xml Modified: phpdoc/en/trunk/reference/datetime/datetime/settimezone.xml =================================================================== --- phpdoc/en/trunk/reference/datetime/datetime/settimezone.xml 2010-04-25 02:17:28 UTC (rev 298456) +++ phpdoc/en/trunk/reference/datetime/datetime/settimezone.xml 2010-04-25 02:18:14 UTC (rev 298457) @@ -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 @@ &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>

« previous php.doc.cvs (#6440) next »