WordPress at Your Fingertips
function is not described

CronExpression_DayOfMonthField::increment() public WC 1.0

{@inheritdoc}

{} It's a 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

Code of CronExpression_DayOfMonthField::increment() WC 6.1.1

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;
}