ActionScheduler_CronSchedule::calculate_next
Calculate when an instance of this schedule would start based on a given date & time using its the CronExpression.
Метод класса: ActionScheduler_CronSchedule{}
Хуков нет.
Возвращает
DateTime.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->calculate_next( $after );
- $after(DateTime) (обязательный)
- Timestamp.
Код ActionScheduler_CronSchedule::calculate_next() ActionScheduler CronSchedule::calculate next WC 11.3.0
protected function calculate_next( DateTime $after ) {
return $this->recurrence->getNextRunDate( $after, 0, false );
}