Daylight saving time and time filtering with -t
carter at qosient.com
carter at qosient.com
Sun Mar 25 13:01:57 EDT 2007
Hey Wolfgang,
The ra* programs use the standard localtime() and timelocal() calls to figure out what the time is, and the TZ variable is there to correct when the system doesn't do the right thing!!!
A TZ that defines your daylight savings rules can help. And if you would like ra to print the timezone that it is using, put a %Z or %z at the end of the TIME_FORMAT variable.
Carter
Carter Bullard
QoSient LLC
150 E. 57th Street Suite 12D
New York, New York 10022
+1 212 588-9133 Phone
+1 212 588-9134 Fax
-----Original Message-----
From: wob at swobspace.de (Wolfgang Barth)
Date: Sun, 25 Mar 2007 11:50:49
To:argus-info at lists.andrew.cmu.edu
Subject: [ARGUS] Daylight saving time and time filtering with -t
Hi,
tonight Europe changed to daylight saving time (in Germany: from MET to
MEST). Today my scripts using ragraph are producing no output. After some
playing around, the problem seems to be filtering time with -t:
ra -r argus-2007-03-2*.log -t 2007/03/24 ...
shows only entries from 2007/03/23 ! Okay, argus and ra are of rc.39, but
in my test enviroment I get the same trouble:
(argus and ra: rc.42, latest code from friday)
ra -r argus.log -s ltime
...
2007-03-25 11:34:12
2007-03-25 11:34:12
2007-03-25 11:34:13
...
ra -r argus.log -s ltime -t 2007/03/25
-> no output.
If I set the variable TZ explicitly (i.e. TZ=GMT-2), all is working as
expected.
Wolfgang
--
<wob (at) swobspace de> * http://www.swobspace.de
More information about the argus
mailing list