introduced get hours and minute functionality