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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Michael Okuntsov <proximum@land.ru>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Datafile with AM/PM in time-series
Date Tue, 17 Mar 2015 21:46:01 +0600
Organization A noiseless patient Spider
Lines 28
Message-ID <me9i69$f93$1@dont-email.me> (permalink)
References <43b5473c-f4be-4b35-8db5-7b8f0b62685e@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Tue, 17 Mar 2015 15:45:13 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="d99df54adea0b77c7fc98046e284ce08"; logging-data="15651"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iG/0q/5dsUEMdHlRI7bZC"
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
In-Reply-To <43b5473c-f4be-4b35-8db5-7b8f0b62685e@googlegroups.com>
Cancel-Lock sha1:XOtCy70gKvetUjL7Pcbi5QLuEYo=
Xref csiph.com comp.graphics.apps.gnuplot:2826

Show key headers only | 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