public function isDue($schedule)
{
$dateTime = \DateTime::createFromFormat('Y-m-d H:i:s', $schedule);
if ($dateTime !== false) {
return $dateTime->format('Y-m-d H:i') == date('Y-m-d H:i');
}
return CronExpression::factory((string) $schedule)->isDue();
}