Class Rfc5545Duration
Provide a useful way of dealing with RFC5545 duration strings of the form ^-?P(\dW)|((\dD)?(T(\dH)?(\dM)?(\dS)?)?)$
Package: awl\RRule
Copyright: Morphoss Ltd
License: GNU GPL v2 or later
Author: Andrew McMillan andrew@mcmillan.net.nz
Located at RRule.php
Copyright: Morphoss Ltd
License: GNU GPL v2 or later
Author: Andrew McMillan andrew@mcmillan.net.nz
Located at RRule.php
public
|
#
__construct( mixed $in_duration )
Construct a new Rfc5545Duration either from incoming seconds or a text string. |
public
boolean
|
|
public
|
|
public
string
|
#
__toString( )
Returns the duration as a text string of the form ^(-?)P(\d+W)|((\d+D)?(T(\d+H)?(\d+M)?(\d+S)?)?)$ |
public static
|
#
fromTwoDates(
Factory method to return an Rfc5545Duration object from the difference between two dates. |