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

From: Date: Sat, 12 Sep 2009 09:09:38 +0000
Subject: svn: /phpdoc/en/trunk/reference/datetime/datetime/ createfromformat.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4910@lists.php.net to get a copy of this message
torben Sat, 12 Sep 2009 09:09:38 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=288278 Log: Document how to cause unspecified portions of the time given to createFromFormat() to be initialized to zero. Addresses bug #49480. Bug: http://bugs.php.net/49480 (Open) DateTime::createFromFormat uses current system time to fill missing fields 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 2009-09-12 08:34:23 UTC (rev 288277) +++ phpdoc/en/trunk/reference/datetime/datetime/createfromformat.xml 2009-09-12 09:09:38 UTC (rev 288278) @@ -50,6 +50,15 @@ </varlistentry> </variablelist> </para> + <para> + If the first character of <parameter>format</parameter> + is <literal>!</literal>, then portions of the date/time value + generated which are not specified in + <parameter>time</parameter> will be initialized to zero. If the + first character of <parameter>format</parameter> is + not <literal>!</literal> then portions of the date/time value + generated will be initialized to the current system time. + </para> </refsect1> <refsect1 role="returnvalues">

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