Convert to hdf5 function pass timestamp conversion function to collate.