classes/Events/API/Event.php
public function getNextOccurrence($after_timestamp = null) {
		if ($after_timestamp === null) {
			$after_timestamp = time();
		}
		
		$after_timestamp = (int) $after_timestamp;

		$next = false;
		if ($this->isRecurring()) {
			$next = $this->calculateEndAfterTimestamp(1, $after_timestamp, false);
		} else if ($after_timestamp < $this->getStartTimestamp()) {
			$next = $this->getStartTimestamp();
		}

		if ($this->repeat_end_timestamp && $this->repeat_end_timestamp < $next) {
			return false;
		}

		return $next;
	}
public function getNextOccurrence($after_timestamp = null) {
		if ($after_timestamp === null) {
			$after_timestamp = time();
		}
		
		$after_timestamp = (int) $after_timestamp;

		$next = false;
		if ($this->isRecurring()) {
			$next = $this->calculateEndAfterTimestamp(1, $after_timestamp, false);
		} else if ($after_timestamp < $this->getStartTimestamp()) {
			$next = $this->getStartTimestamp();
		}

		if ($this->repeat_end_timestamp && $this->repeat_end_timestamp < $next) {
			return false;
		}

		return $next;
	}
public function getNextOccurrence ( $ after_timestamp = null ) { if ( $ after_timestamp === null ) { $ after_timestamp = time ( ) ; } $ after_timestamp = ( int ) $ after_timestamp ; $ next = false ; if ( $ this -> isRecurring ( ) ) { $ next = $ this -> calculateEndAfterTimestamp ( 1 , $ after_timestamp , false ) ; } else if ( $ after_timestamp < $ this -> getStartTimestamp ( ) ) { $ next = $ this -> getStartTimestamp ( ) ; } if ( $ this -> repeat_end_timestamp && $ this -> repeat_end_timestamp < $ next ) { return false ; } return $ next ; }
Returns the start timestamp of the next event occurence
Returns false if there are no future occurrences

@param int $after_timestamp Find next occurrence
@return int|false
Returns the start timestamp of the next event occurence Returns false if there are no future occurrences