Optional
countThe maximum number of occurrences
Optional
freqThe frequency value.
Readonly
icalclassThe class identifier.
Readonly
icaltypeThe type name, to be used in the jCal object.
The interval value for the recurrence rule.
An object holding the BY-parts of the recurrence rule
Optional
untilThe end of the recurrence
The week start day
Retrieves the next occurrence after the given recurrence id. See the guide on {@tutorial terminology} for more details.
NOTE: Currently, this method iterates all occurrences from the start date. It should not be called in a loop for performance reasons. If you would like to get more than one occurrence, you can iterate the occurrences manually, see the example on the ICAL.Recur#iterator iterator method.
The next occurrence after
Create a new iterator for this recurrence rule. The passed start date must be the start date of the event, not the start of the range to search in.
The item's start date
The recurrence iterator
let recur = comp.getFirstPropertyValue('rrule');
let dtstart = comp.getFirstPropertyValue('dtstart');
let iter = recur.iterator(dtstart);
for (let next = iter.next(); next; next = iter.next()) {
if (next.compare(rangeStart) < 0) {
continue;
}
console.log(next.toString());
}
Static
Private
_stringStatic
fromStatic
fromStatic
icalConvert an ical representation of a day (SU, MO, etc..) into a numeric value of that day.
The iCalendar day name
Optional
aWeekStart: WeekDayThe week start weekday, defaults to SUNDAY
Numeric value of given day
Static
numericGenerated using TypeDoc
This class represents the "recur" value type, used for example by RRULE. It provides methods to calculate occurrences among others.
Alias
ICAL.Recur