public function JobSchedulerCronTab::nextDate in Job Scheduler 7.2
Find the next occurrence within the next year as a date array,.
@codingStandardsIgnoreStart
Parameters
array $date: Date array with: 'mday', 'mon', 'year', 'hours', 'minutes'.
int $limit: Default is 366.
See also
getdate()
1 call to JobSchedulerCronTab::nextDate()
- JobSchedulerCronTab::nextTime in ./
JobSchedulerCronTab.inc - Find the next occurrence within the next year as unix timestamp.
File
- ./
JobSchedulerCronTab.inc, line 119 - JobSchedulerCronTab class.
Class
- JobSchedulerCronTab
- Jose's cron tab parser = Better try only simple crontab strings.
Code
public function nextDate($date, $limit = 366) {
// @codingStandardsIgnoreEnd
$date['seconds'] = 0;
// It is possible that the current date doesn't match.
if ($this
->checkDay($date) && ($nextdate = $this
->nextHour($date))) {
return $nextdate;
}
elseif ($nextdate = $this
->nextDay($date, $limit)) {
return $nextdate;
}
else {
return FALSE;
}
}