freq to time