#27 refactory getTime to get from a util.