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


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

Re: time not daylight saving time aware?

From Péter Juhász <peter.juhasz83@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: time not daylight saving time aware?
Date 2012-02-02 11:01 -0800
Organization http://groups.google.com
Message-ID <182f5daa-0c2e-409f-a090-b7e8a8d596af@dp8g2000vbb.googlegroups.com> (permalink)
References <4f2aa421$0$6920$e4fe514c@news2.news.xs4all.nl>

Show all headers | View raw


On Feb 2, 3:56 pm, "Alex van der Spek" <zd...@xs4all.nl> wrote:
> gnuplot 4.6 rc 1 built on Linux Ubuntu
>
> gnuplot> print time("%Y-%m-%d %H:%M:%S")
>
> returns the date and time but is off by one hour. It appears to be unaware
> of daylight saving time?
>
> Alex van der Spek

The 'time' function queries the unix timestamp from the system, and
from that it calculates the number of seconds since 2000.0 which it
returns.  However, unix time is UTC-based, so is gnuplot's 'time'
function.

Péter Juhász

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


Thread

time not daylight saving time aware? "Alex van der Spek" <zdoor@xs4all.nl> - 2012-02-02 15:56 +0100
  Re: time not daylight saving time aware? Hermann Peifer <peifer@gmx.eu> - 2012-02-02 18:23 +0100
  Re: time not daylight saving time aware? Péter Juhász <peter.juhasz83@gmail.com> - 2012-02-02 11:01 -0800
  Re: time not daylight saving time aware? "Alex van der Spek" <zdoor@xs4all.nl> - 2012-02-03 15:29 +0100

csiph-web