Converts time to different types.