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 264)
Add some integer number of days to a date
AddDuration (line 292)
Add duration
AddMonths (line 236)
Add some number of months to a date
ApplyBySetPos (line 561)
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 329)
Produce an iCalendar format DURATION for the difference between this an another iCalDate
DaysInMonth (line 187)
No of days in a month 1(Jan) - 12(Dec)
GetMonthByDay (line 412)
Applies any BYDAY to the month to return a set of days
GetMonthByMonthDay (line 433)
Applies any BYMONTHDAY to the month to return a set of days
GetWeekByDay (line 453)
Applies any BYDAY to the week to return a set of days
GreaterThan (line 476)
Test if $this is greater than the date parameter
LessThan (line 491)
Test if $this is less than the date parameter
MonthDays (line 510)
Given a MonthDays string like "1MO", "-2WE" return an integer day of the month.
Render (line 171)
Set the day of week used for calculation of week starts
RenderGMT (line 179)
Render the date as GMT
SetEpochDate (line 103)
Set the date from an epoch
SetGMTDate (line 83)
Set the date from a text string
SetLocalDate (line 93)
Set the date from a text string
SetMonthDay (line 224)
Set the day in the month to what we have been given
SetWeekStart (line 162)
Set the day of week used for calculation of week starts
TestByMonth (line 400)
Test to see if our _mo matches something in the list of months we have received.
_EpochFromParts (line 151)
Given a local text date, convert it to an epoch
_GMTEpochFromParts (line 142)
Given a GMT text date, convert it to an epoch
_GMTTextFromEpoch (line 121)
Given a GMT epoch date, convert it to text
_PartsFromText (line 129)
Given a text date, convert it to parts
_TextFromEpoch (line 113)
Given an epoch date, convert it to text
Documentation generated on Fri, 10 Apr 2009 23:45:54 +1200 by phpDocumentor 1.3.2