Take any kind of time_point as deadline in approximate(..).

Also fix function docs.