Class ToTimeFunction