On Fri, Aug 1, 2008 at 11:59, <[EMAIL PROTECTED]> wrote: > It does, thats why it works with date_add & date_sub but when it's > var_dumped nothing is displayed just -> diff: object(DateInterval)#3 (0) { }
I talked to Derick about it, on IRC, and apparently this is a bug, var_dump()ing DateInterval should show the properties of the object. To retrieve the interval you should use the ->format() method though. -Hannes