Re: svn: /phpdoc/en/trunk/reference/datetime/dateinterval/ construct.xml
| From: | Derick Rethans | Date: | Fri, 28 Aug 2009 08:48:10 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/reference/datetime/dateinterval/ construct.xml | ||
| References: | 1 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-4790@lists.php.net to get a copy of this message | ||
On Thu, 27 Aug 2009, Daniel Convissor wrote:
> danielc Thu, 27 Aug 2009 22:15:31 +0000
>
> Revision:
> http://svn.php.net/viewvc?view=revision&revision=287821
>
> Log:
> explain the interval format
>
> Changed paths:
> U phpdoc/en/trunk/reference/datetime/dateinterval/construct.xml
>
> Modified: phpdoc/en/trunk/reference/datetime/dateinterval/construct.xml
> ===================================================================
> --- phpdoc/en/trunk/reference/datetime/dateinterval/construct.xml 2009-08-27 21:43:12 UTC (rev
> 287820)
> +++ phpdoc/en/trunk/reference/datetime/dateinterval/construct.xml 2009-08-27 22:15:31 UTC (rev
> 287821)
> @@ -28,12 +28,91 @@
> <para>
> Interval specification.
> </para>
> + <para>
> + The <emphasis>date portion</emphasis>, if any,
> + starts with the letter <literal>P</literal>.
> + Each date unit is represented by an integer value
> + followed by the letter indicating the unit type.
> + The date unit types are
> + <literal>Y</literal> for years,
> + <literal>M</literal> for months and
> + <literal>D</literal> for days.
> + For example, the format to create a two day
> + interval is <literal>P2D</literal>.
> + </para>
This is not correct as the "P" has nothing to do with the date portion
at all. It is there to show that there is a Period specification. Even
when just using the time portion, the "P" needs to be there, like in
"PT2H".
These docs should also point at
http://en.wikipedia.org/wiki/Iso8601#Time_intervals
in some form.
regards,
Derick
--
http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org
twitter: @derickr