fit_to_timeline function

Fit a POSIXlt date-time to the timeline