Write timestamps to file as dataset attributes along with data

Merged Vincent POLLET requested to merge timestamps_writing into master

Merge request reports