WordPress at Your Fingertips
function is not described

CronExpression_AbstractField::isInRange() public WC 1.0

Test if a value is within a range

{} It's a method of the class: CronExpression_AbstractField{}

No Hooks.

Return

true|false.

Usage

$CronExpression_AbstractField = new CronExpression_AbstractField();
$CronExpression_AbstractField->isInRange( $dateValue, $value );
$dateValue(string) (required)
Set date value
$value(string) (required)
Value to test

Code of CronExpression_AbstractField::isInRange() WC 6.1.1

public function isInRange($dateValue, $value)
{
    $parts = array_map('trim', explode('-', $value, 2));

    return $dateValue >= $parts[0] && $dateValue <= $parts[1];
}