reformat timestamps for gnuplot