ActionScheduler_CronSchedule::calculate_next()
Calculate when an instance of this schedule would start based on a given date & time using its the CronExpression.
Method of the class: ActionScheduler_CronSchedule{}
No Hooks.
Returns
DateTime
.
Usage
// protected - for code of main (parent) or child class $result = $this->calculate_next( $after );
- $after(DateTime) (required)
- Timestamp.
ActionScheduler_CronSchedule::calculate_next() ActionScheduler CronSchedule::calculate next code WC 9.8.5
protected function calculate_next( DateTime $after ) { return $this->recurrence->getNextRunDate( $after, 0, false ); }