Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2826

Re: Datafile with AM/PM in time-series

From Michael Okuntsov <proximum@land.ru>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Datafile with AM/PM in time-series
Date 2015-03-17 21:46 +0600
Organization A noiseless patient Spider
Message-ID <me9i69$f93$1@dont-email.me> (permalink)
References <43b5473c-f4be-4b35-8db5-7b8f0b62685e@googlegroups.com>

Show all headers | View raw


16.03.2015 22:03, cassini01@live.com пишет:
> Hi,
>
> I want to plot a time-series datafile in which the time is specified as follows:
>
> ...
> 3/12/2015	11:59:45 PM
> 3/12/2015	11:59:50 PM
> 3/12/2015	11:59:55 PM
> 3/13/2015	12:00:00 AM
> 3/13/2015	12:00:05 AM
> 3/13/2015	12:00:10 AM
> ...
>
>
> How to plot with correct X-axis timeformat ?
> (%p seems to be an am/pm specifier only for the output, not for the input datafile, correct ?)
>
> Many thanks
>

Seems that you can't do it within gnuplot. You can convert your series 
to 24h format the same way as it was answeded here:

http://stackoverflow.com/questions/440061/convert-12-hour-date-time-to-24-hour-date-time

Generally speaking, it's a bad idea, to use AM/PM notation in technical 
data.

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Datafile with AM/PM in time-series cassini01@live.com - 2015-03-16 09:03 -0700
  Re: Datafile with AM/PM in time-series Michael Okuntsov <proximum@land.ru> - 2015-03-17 21:46 +0600

csiph-web