CronExpression_FieldInterface::isSatisfiedBy()publicWC 1.0

Check if the respective value of a DateTime field satisfies a CRON exp

Method of the class: CronExpression_FieldInterface{}

No Hooks.

Return

true|false. Returns TRUE if satisfied, FALSE otherwise

Usage

$CronExpression_FieldInterface = new CronExpression_FieldInterface();
$CronExpression_FieldInterface->isSatisfiedBy( $date, $value );
$date(DateTime) (required)
DateTime object to check
$value(string) (required)
CRON expression to test against

CronExpression_FieldInterface::isSatisfiedBy() code WC 7.3.0

public function isSatisfiedBy(DateTime $date, $value);