Wrap the DateTime class to make it friendlier to passing in random strings from iCalendar objects, and especially the random stuff used to identify timezones. We also add some utility methods and stuff too, in order to simplify some of the operations we need to do with dates.
Located in /inc/RRule-v2.php (line 204)
DateTime | --RepeatRuleDateTime
Returns the number of days in a year/month pair
Returns a 1 if this year is a leap year, otherwise a 0
If this is a localised time then this will return the UTC equivalent. If it is a floating time, then you will just get the floating time. If it is a date then it will be returned as a date. Note that if it is a *localised* date then the answer will still be the UTC equivalent but only the date itself will be returned.
If return_floating_times is true then all dates will be returned as floating times and UTC will not be returned.
Returns the string following a property name for an RFC5545 DATE-TIME value.
Always returns a time localised to UTC. Even floating times are converted to UTC using the server's currently configured PHP timezone. Even dates will include a time, which will be non-zero if they were localised dates.
Inherited From DateTime (Internal Class)
constructor __construct ( [$time = ], [$object = ] )
add ( $interval )
createFromFormat ( $format, $time, [$object = ] )
diff ( $object, [$absolute = ] )
format ( $format )
getLastErrors ( )
getOffset ( )
getTimestamp ( )
getTimezone ( )
modify ( $modify )
setDate ( $year, $month, $day )
setISODate ( $year, $week, [$day = ] )
setTime ( $hour, $minute, [$second = ] )
setTimestamp ( $unixtimestamp )
setTimezone ( $timezone )
sub ( $interval )
__set_state ( )
__wakeup ( )
Inherited from DateTime (Internal Class)
ATOM = 'Y-m-d\\TH:i:sP'
COOKIE = 'l, d-M-y H:i:s T'
ISO8601 = 'Y-m-d\\TH:i:sO'
RFC822 = 'D, d M y H:i:s O'
RFC850 = 'l, d-M-y H:i:s T'
RFC1036 = 'D, d M y H:i:s O'
RFC1123 = 'D, d M Y H:i:s O'
RFC2822 = 'D, d M Y H:i:s O'
RFC3339 = 'Y-m-d\\TH:i:sP'
RSS = 'D, d M Y H:i:s O'
W3C = 'Y-m-d\\TH:i:sP'
Documentation generated on Fri, 13 Jan 2012 23:44:56 +1300 by phpDocumentor 1.4.3