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.
Definition at line 210 of file RRule.php.
| RepeatRuleDateTime::modify |
( |
| $interval | ) |
|
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.
- See also
- RepeatRuleDateTime::UTC()
Returns the string following a property name for an RFC5545 DATE-TIME value.
Returns a 1 if this year is a leap year, otherwise a 0
- Parameters
-
| int | $year | The year we are quizzical about. |
- Returns
- 1 if this is a leap year, 0 otherwise
Returns the number of days in a year/month pair
- Parameters
-
- Returns
- int the number of days in the month
Definition at line 356 of file RRule.php.