added functionality to get days of week from cron job pattern