| Methods |
public
|
__construct(
array<string, mixed>|string $rule,
int $start,
list<int> $excluded = [],
list<int> $added = [],
int $maxOccurrences = 100000,
)
Parameters
| $rule |
RRULE parts or an RRULE value like "FREQ=DAILY;COUNT=3"
|
| $start |
Unix timestamp of DTSTART
|
| $excluded |
EXDATE timestamps
|
| $added |
RDATE timestamps
|
| $maxOccurrences |
expanding more occurrences throws RuntimeException
|
Throws
|
#
|
public
|
findNext(int|bool $offset): bool|int
Next occurrence after the given timestamp, or false when there is none.
Next occurrence after the given timestamp, or false when there is none.
|
#
|
public
|
findEndOfPeriod(int $offset = 0): int
Start of the next FREQ period after the given timestamp (e.g. +1 month for MONTHLY).
Start of the next FREQ period after the given timestamp (e.g. +1 month for MONTHLY).
|
#
|
public
|
previousOccurrence(int $offset): bool|int
Most recent occurrence before the given timestamp, or false when there is none.
Most recent occurrence before the given timestamp, or false when there is none.
|
#
|
public
|
nextOccurrence(int $offset): bool|int
Next occurrence after the given timestamp, or false when there is none.
Next occurrence after the given timestamp, or false when there is none.
|
#
|
public
|
firstOccurrence(): bool|int
First occurrence of the recurrence set, or false for an empty set.
First occurrence of the recurrence set, or false for an empty set.
|
#
|
public
|
lastOccurrence(): int|false
Last occurrence of the recurrence set, or false for an empty set.
Last occurrence of the recurrence set, or false for an empty set.
|
#
|
public
|
getAllOccurrences(): list<int>
All occurrences, sorted. Unbounded rules throw RuntimeException after maxOccurrences.
All occurrences, sorted. Unbounded rules throw RuntimeException after maxOccurrences.
|
#
|