Provide a useful way of dealing with RFC5545 duration strings of the form
^-?P(\dW)|((\dD)?(T(\dH)?(\dM)?(\dS)?)?)$
Located in /inc/RRule-v2.php (line 77)
Factory method to return an Rfc5545Duration object from the difference between two dates.
This is flawed, at present: we should really localise both dates and work out the difference in days, then localise the times and work out the difference between the clock times. On the other hand we're replacing a quick and dirty hack that did it exactly the same way in the past, so we're not making things any *worse* and at least we're making it clear that it could be improved...
The problem strikes (as they all do) across DST boundaries.
Construct a new Rfc5545Duration either from incoming seconds or a text string.
Returns the duration as epoch seconds.
Return true if $this and $other are equal, false otherwise.
Returns the duration as a text string of the form ^(-?)P(\d+W)|((\d+D)?(T(\d+H)?(\d+M)?(\d+S)?)?)$
Documentation generated on Fri, 13 Jan 2012 23:44:56 +1300 by phpDocumentor 1.4.3