added get hour functionality for cron job - incl. specs