2 namespace TYPO3\CMS\Scheduler;
161 $this->cronCmd = $cmd;
224 if ($this->cronCmd) {
226 $date = $this->getNextCronExecution();
227 }
elseif ($this->interval == 0) {
233 $date = $now + $this->interval - ($now -
$this->start) % $this->interval;
236 if (!empty($this->end) && $date >
$this->end) {
237 throw new \OutOfBoundsException(
'Next execution date is past end date.', 1250715528);
242 throw new \OutOfBoundsException(
'Task is past end date.', 1250715544);
252 public function getNextCronExecution()
255 $cronCmd = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\
Scheduler\CronCommand\CronCommand::class, $this->
getCronCmd());
267 return $this->start < time();
277 if (empty($this->end)) {
282 $result = $this->end < time();