protected function expressionPasses(): bool
    {
        $date = Chronos::now();

        if ($this->timezone !== null) {
            $date->setTimezone($this->timezone);
        }

        return CronExpression::factory($this->expression)->isDue($date->toDateTimeString());
    }
protected function expressionPasses(): bool
    {
        $date = Chronos::now();

        if ($this->timezone !== null) {
            $date->setTimezone($this->timezone);
        }

        return CronExpression::factory($this->expression)->isDue($date->toDateTimeString());
    }
protected function expressionPasses ( ) : bool { $ date = Chronos :: now ( ) ; if ( $ this -> timezone !== null ) { $ date -> setTimezone ( $ this -> timezone ) ; } return CronExpression :: factory ( $ this -> expression ) -> isDue ( $ date -> toDateTimeString ( ) ) ; }
Determine if the Cron expression passes.

@return bool
Determine if the Cron expression passes .