Class Rfc5545Duration
Provide a useful way of dealing with RFC5545 duration strings of the form ^(-?)P(?:(\d+W)|(?:(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S?)?)?))$ This doesn't fully implement the RFC, as it allows PT10H10S - which should be invalid as no minutes are present.
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. |