CronExpression_DayOfMonthField::increment()publicWC 1.0

{@inheritdoc}

Method of the class: CronExpression_DayOfMonthField{}

No Hooks.

Return

null. Nothing.

Usage

$CronExpression_DayOfMonthField = new CronExpression_DayOfMonthField();
$CronExpression_DayOfMonthField->increment( $date, $invert );
$date(DateTime) (required)
-
$invert **
-
Default: false

CronExpression_DayOfMonthField::increment() code WC 7.3.0

public function increment(DateTime $date, $invert = false)
{
    if ($invert) {
        $date->modify('previous day');
        $date->setTime(23, 59);
    } else {
        $date->modify('next day');
        $date->setTime(0, 0);
    }

    return $this;
}