RepeatRuleDateTimeWrap 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
static daysInMonth (line 453)
Returns the number of days in a year/month pair
static hasLeapDay (line 442)
Returns a 1 if this year is a leap year, otherwise a 0
Constructor __construct (line 211)
AsDate (line 308)
day (line 494)
epoch (line 510)
FloatOrUTC (line 388)
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.
getTimeZone (line 432)
hour (line 498)
isDate (line 322)
isFloating (line 318)
minute (line 502)
modify (line 332)
month (line 490)
RFC5545 (line 404)
Returns the string following a property name for an RFC5545 DATE-TIME value.
second (line 506)
setAsDate (line 327)
setAsFloat (line 313)
setDate (line 460)
setTimeZone (line 422)
setYearDay (line 471)
UTC (line 361)
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.
year (line 486)
__toString (line 303)
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 Sun, 08 Jul 2012 12:53:50 +0000 by phpDocumentor 1.4.3