Re: Re: cvs: phpdoc /en/reference/datetime/functions date-add.xml date-sub.xml
| From: | Richard Quadling | Date: | Wed, 30 Jul 2008 11:36:56 +0000 |
| Subject: | Re: Re: cvs: phpdoc /en/reference/datetime/functions date-add.xml date-sub.xml | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969379212@lists.php.net to get a copy of this message | ||
2008/7/29 Hannes Magnusson <hannes.magnusson@gmail.com>:
> 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
>
Until the DateInterval dox are in, at least will give some indication of use.
When they are in, we can move the description out.
--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"