57 return ($it->getDTStart() < $end && $it->getDTEnd() >
$start);
61 $effectiveStart = $this->DTSTART->getDateTime($start->getTimezone());
62 if (isset($this->DTEND)) {
70 $effectiveEnd = $this->DTEND->getDateTime($end->getTimezone());
72 } elseif (isset($this->DURATION)) {
74 } elseif (!$this->DTSTART->hasTime()) {
75 $effectiveEnd = $effectiveStart->modify(
'+1 day');
77 $effectiveEnd = $effectiveStart;
80 ($start < $effectiveEnd) && ($end > $effectiveStart)
94 'DTSTAMP' => date(
'Ymd\\THis\\Z'),
116 $hasMethod = isset($this->
parent->METHOD);
120 'DTSTART' => $hasMethod ?
'?' :
'1',
123 'DESCRIPTION' =>
'?',
125 'LAST-MODIFIED' =>
'?',
134 'RECURRENCE-ID' =>
'?',
145 'REQUEST-STATUS' =>
'*',
This class is used to determine new for a recurring event, when the next events occur.
This exception gets thrown when a recurrence iterator produces 0 instances.
getDefaults()
This method should return a list of default property values.
fastForward(DateTimeInterface $dateTime)
Quickly jump to a date in the future.
static parseDuration($duration, $asString=false)
Parses an iCalendar (RFC5545) formatted duration value.
static getUUID()
Returns a pseudo-random v4 UUID.
isInTimeRange(DateTimeInterface $start, DateTimeInterface $end)
Returns true or false depending on if the event falls in the specified time-range.