timeline function

Convert to/from a timeline data set format