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

From: Date: Wed, 30 Nov 2011 20:59:44 +0000
Subject: svn: /phpdoc/en/trunk/reference/datetime/datetime/ createfromformat.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9102@lists.php.net to get a copy of this message
salathe Wed, 30 Nov 2011 20:59:44 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=320207 Log: mention what happens with no timezone, or when it is ignored, for datetime::createfromformat (thanks aeiou) Changed paths: U phpdoc/en/trunk/reference/datetime/datetime/createfromformat.xml Modified: phpdoc/en/trunk/reference/datetime/datetime/createfromformat.xml =================================================================== --- phpdoc/en/trunk/reference/datetime/datetime/createfromformat.xml 2011-11-30 19:42:59 UTC (rev 320206) +++ phpdoc/en/trunk/reference/datetime/datetime/createfromformat.xml 2011-11-30 20:59:44 UTC (rev 320207) @@ -305,6 +305,21 @@ A <classname>DateTimeZone</classname> object representing the desired time zone. </para> + <para> + If <parameter>timezone</parameter> is omitted and + <parameter>time</parameter> contains no timezone, + the current timezone will be used. + </para> + <note> + <para> + The <parameter>timezone</parameter> parameter + and the current timezone are ignored when the + <parameter>time</parameter> parameter either + contains a UNIX timestamp (e.g. <literal>946684800</literal>) + or specifies a timezone + (e.g. <literal>2010-01-28T15:00:00+02:00</literal>). + </para> + </note> </listitem> </varlistentry> </variablelist>

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