src/ICal/ICal.php
public function eventsFromInterval($interval)
    {
        $rangeStart = new \DateTime('now', new \DateTimeZone($this->defaultTimeZone));
        $rangeEnd   = new \DateTime('now', new \DateTimeZone($this->defaultTimeZone));

        $dateInterval = \DateInterval::createFromDateString($interval);
        $rangeEnd->add($dateInterval);

        return $this->eventsFromRange($rangeStart->format('Y-m-d'), $rangeEnd->format('Y-m-d'));
    }
public function eventsFromInterval($interval)
    {
        $rangeStart = new \DateTime('now', new \DateTimeZone($this->defaultTimeZone));
        $rangeEnd   = new \DateTime('now', new \DateTimeZone($this->defaultTimeZone));

        $dateInterval = \DateInterval::createFromDateString($interval);
        $rangeEnd->add($dateInterval);

        return $this->eventsFromRange($rangeStart->format('Y-m-d'), $rangeEnd->format('Y-m-d'));
    }
public function eventsFromInterval ( $ interval ) { $ rangeStart = new \ DateTime ( 'now' , new \ DateTimeZone ( $ this -> defaultTimeZone ) ) ; $ rangeEnd = new \ DateTime ( 'now' , new \ DateTimeZone ( $ this -> defaultTimeZone ) ) ; $ dateInterval = \ DateInterval :: createFromDateString ( $ interval ) ; $ rangeEnd -> add ( $ dateInterval ) ; return $ this -> eventsFromRange ( $ rangeStart -> format ( 'Y-m-d' ) , $ rangeEnd -> format ( 'Y-m-d' ) ) ; }
Returns a sorted array of the events following a given string,
or `false` if no events exist in the range.

@param  string $interval
@return array
Returns a sorted array of the events following a given string or false if no events exist in the range .