iCalDateA Class for handling dates in iCalendar format. We do make the simplifying assumption that all date handling in here is normalised to GMT. One day we might provide some functions to do that, but for now it is done externally.
Located in /inc/RRule.php (line 21)
Constructor iCalDate (line 50)
The constructor takes either an iCalendar date, a text string formatted as an iCalendar date, or epoch seconds.
AddDays (line 265)
Add some integer number of days to a date
AddDuration (line 293)
Add duration
AddMonths (line 237)
Add some number of months to a date
ApplyBySetPos (line 563)
Given set position descriptions like '1', '3', '11', '-3' or '-1' and a set, return the subset matching the list of set positions.
DateDifference (line 331)
Produce an iCalendar format DURATION for the difference between this an another iCalDate
DaysInMonth (line 188)
No of days in a month 1(Jan) - 12(Dec)
GetMonthByDay (line 414)
Applies any BYDAY to the month to return a set of days
GetMonthByMonthDay (line 435)
Applies any BYMONTHDAY to the month to return a set of days
GetWeekByDay (line 455)
Applies any BYDAY to the week to return a set of days
GreaterThan (line 478)
Test if $this is greater than the date parameter
LessThan (line 493)
Test if $this is less than the date parameter
MonthDays (line 512)
Given a MonthDays string like "1MO", "-2WE" return an integer day of the month.
Render (line 172)
Set the day of week used for calculation of week starts
RenderGMT (line 180)
Render the date as GMT
SetEpochDate (line 104)
Set the date from an epoch
SetGMTDate (line 84)
Set the date from a text string
SetLocalDate (line 94)
Set the date from a text string
SetMonthDay (line 225)
Set the day in the month to what we have been given
SetWeekStart (line 163)
Set the day of week used for calculation of week starts
TestByMonth (line 402)
Test to see if our _mo matches something in the list of months we have received.
_EpochFromParts (line 152)
Given a local text date, convert it to an epoch
_GMTEpochFromParts (line 143)
Given a GMT text date, convert it to an epoch
_GMTTextFromEpoch (line 122)
Given a GMT epoch date, convert it to text
_PartsFromText (line 130)
Given a text date, convert it to parts
_TextFromEpoch (line 114)
Given an epoch date, convert it to text
Documentation generated on Wed, 04 Jul 2012 10:13:10 +0000 by phpDocumentor 1.4.3