Extract DateTime and Time duplicate methods to module