|
From: Hans-Bernhard B. <HBB...@t-...> - 2018-01-20 14:15:59
|
Am 20.01.2018 um 04:28 schrieb Alan Corey: > I'd like to be able to do date >> datafile, then edit the file to add > other columns, and have Gnuplot understand the date/time format which > looks like: > > Fri Jan 19 22:08:14 EST 2018 > > It seems like this must be a common thing to do. Not really, since the common approach would be that, if you want a machine to parse that timestamp, you better not output it in a format designed strictly for human consumption. Not even if that's the default format. This is what date options like +'%s', -Iseconds or --rfc3339 are for, the latter two possibly combined with -u to get absolute timestamps. Or better yet, see if your editor can't insert the timestamps itself, instead of you having to do this in a two-step process. |