[mrtg] Re: Time stamps in log files
Dowling, Steve
Steve.Dowling at tafensw.edu.au
Sun Oct 27 23:46:54 MET 2002
Thenks Alex
This will sort out many wierd problems
-----Original Message-----
From: Alex van den Bogaerdt [mailto:alex at ergens.op.het.net]
Sent: Friday, 25 October 2002 19:41
To: mrtg mailing list
Subject: [mrtg] Re: Time stamps in log files
On Fri, Oct 25, 2002 at 04:07:23PM +1000, Dowling, Steve wrote:
> Are the timestamps in the logfiles recorded in localtime or gmtime? Does
> anybody know why my daily logfiles are stamped at 10am rather than at
> midnight (which I would have expected)?
Time is recorded in UTC. At 00:00 UTC your local time will
be 10 hours ahead or behind. I think it should be ahead in
your case so at 00:00 UTC it is 10:00 local time for you.
To make sure, visit http://times.clari.net.au/Australia.html
> As a secondary point, I'll need to make this script usefule to any user.
> Will I have to worry about daylight savings time?
Well, yes and no:
No, because UTC has no business with daylight saving time.
Yes, because one day will be 23 hours, another day will be
25 hours. You may need to take that into consideration.
Some time zones have no daylight saving, some have only
half an hour. If you define a day to be 00:00 upto 24:00,
everything should be fine. Just don't define a day to be
00:00 to (00:00 +24h).
HTH
Alex
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list