Replaced gethours() method