src/Viserio/Component/Cron/Cron.php
private function isMidnightBetween(string $startTime, string $endTime): bool
    {
        return \strtotime($startTime) > \strtotime($endTime);
    }
private function isMidnightBetween(string $startTime, string $endTime): bool
    {
        return \strtotime($startTime) > \strtotime($endTime);
    }
Check if startTime and endTime are before and after midnight.

@param string $startTime
@param string $endTime

@return bool