2008/7/29 Hannes Magnusson <[EMAIL PROTECTED]>:
> On Tue, Jul 29, 2008 at 18:15, Richard Quadling <[EMAIL PROTECTED]> 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!"

Reply via email to