Re: cvs: phpdoc /en/reference/datetime/functions date-add.xml date-sub.xml
| From: | Hannes Magnusson | Date: | Tue, 29 Jul 2008 18:00:33 +0000 |
| Subject: | Re: cvs: phpdoc /en/reference/datetime/functions date-add.xml date-sub.xml | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969379205@lists.php.net to get a copy of this message | ||
On Tue, Jul 29, 2008 at 18:15, Richard Quadling <rquadling@php.net> wrote:
> rquadling Tue Jul 29 16:15:27 2008 UTC
>
> Added files:
> /phpdoc/en/reference/datetime/functions date-add.xml date-sub.xml
> Log:
> date-add and date-sub (with thanks to Andy J Belamy)
>
>
>
> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/datetime/functions/date-add.xml?view=markup&rev=1.1
> Index: phpdoc/en/reference/datetime/functions/date-add.xml
> +++ phpdoc/en/reference/datetime/functions/date-add.xml
[..]
> <para>
> The amount to be added. For the date use "P3D", "P3M",
> "P3Y" or a
> combination of the three e.g. "P2M5D" (Y = Years, M = Months, D = Days.)
> MUST BE YEAR MONTH DAY FORMAT "P5Y", "P5M2D", "P5Y4D". For
> the time use
> "T3H", "T3M", "T3S" or or a combination of the three e.g.
> "T5H20M" (H =
> Hours, M = Minutes, S = Seconds). For dateTime us "P5D2M4YT5H20M". The
> digit before the letter (NOT P or T) can be any amount.
What does this mean, and why is it documented here? I thought the
second parameter was an instance of DateInterval?
-Hannes