2008/7/30 Richard Quadling <[EMAIL PROTECTED]>:
> 2008/7/29 <[EMAIL PROTECTED]>
>>
>> Hi Richard,
>>
>> I should really follow what I document.
>>
>> Here's the new date_add() that had the error
>>
>> date_add($date, new DateInterval('P5Y5M5D'));
>>
>> also date_sub might need:  date_sub($date, new DateInterval('P5Y5M5D'));
>>
>> Also, do I need to hit Reply All with this?
>>
>> Regards
>> Andy
>>
>>
>> --------------------------------------------------
>> From: "Richard Quadling" <[EMAIL PROTECTED]>
>> Sent: Tuesday, July 29, 2008 4:37 PM
>> To: <[EMAIL PROTECTED]>
>> Subject: Fwd: [PHP-DOC] Fw: [PHP Wiki] new user: ajbellamy
>>
>>> Hello Andy.
>>>
>>> I'm just taking a look at your date-add.xml and date-sub.xml.
>>>
>>> I've tidied the XML to how we like it.
>>>
>>> There is a reference to a missing function - date_diff (not date_dif).
>>> Are you going to document that too?
>>>
>>> There is no DateInterval documentation (hint hint).
>>>
>>> Also, one of the examples generates an error...
>>>
>>> "date_add($date, new DateInterval('P5D5M5Y'));" is generating an error
>>> : Unknown or bad format (P5D5M5Y).
>>>
>>> If you can supply a new example, I'll add it in and commit
>>> date_add/date_sub. If you can supply the missing date_diff and
>>> DateInterval too ...
>>>
>>> Regards,
>>>
>>> Richard.
>>>
>>> --
>>> -----
>>> Richard Quadling
>>> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
>>> "Standing on the shoulders of some very clever giants!"
>>>
>
> I tidied up the XML a little.
>
> I think I was on an older version of PHP5.3-dev as the example works
> now, so I've not changed it.
>
> Take a look at the diff between your copy and the one have. Nothing
> significant, just made sure all the indenting was correct and followed
> the 80 char width rule as best as possible. Sometimes not always
> possible. Most container tags exist on their own line.
>
> If you'd like to make the date-diff.xml ... then we can review that as
> well and most likely a recommendation can be made (that's not up to me
> though).
>
> As for reply-all, yes. As this is a distributed mailing list to the
> PHPDoc community, anyone can step in in response to a query you have
> or anything else related. There are no personalities here (ahem!).
>
>
>
> Richard.
>
> Richard Quadling
> "Standing on the shoulders
> of some very clever giants"
>


Ha! Somewhere along the line I corrected the example. Not sure I
remember doing that! Getting old.

-- 
-----
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