Cron format to time parsing implemented in scala