CronExpression_FieldInterface::increment()
When a CRON expression is not satisfied, this method is used to increment or decrement a DateTime object by the unit of the cron field
Метод класса: CronExpression_FieldInterface{}
Хуков нет.
Возвращает
CronExpression_FieldInterface
.
Использование
$CronExpression_FieldInterface = new CronExpression_FieldInterface(); $CronExpression_FieldInterface->increment( $date, $invert );
- $date(DateTime) (обязательный)
- DateTime object to change
- $invert(true|false)
- (optional) Set to TRUE to decrement
По умолчанию: false
Код CronExpression_FieldInterface::increment() CronExpression FieldInterface::increment WC 9.2.3
public function increment(DateTime $date, $invert = false);