pcp
[Top] [All Lists]

Re: [pcp] Daylight savings bug

To: Nathan Scott <nscott@xxxxxxxxxx>
Subject: Re: [pcp] Daylight savings bug
From: Mark Goodwin <markgw@xxxxxxx>
Date: Tue, 25 Nov 2008 11:20:19 +1100
Cc: kenj@xxxxxxxxxxxxxxxx, pcp@xxxxxxxxxxx
In-reply-to: <1227570519.4557.24.camel@xxxxxxxxxxxxxxxxxx>
Organization: SGI Engineering
References: <1223438632.4494.17.camel@xxxxxxxxxxxxxxxxxx> <1227549185.10096.13.camel@bozo> <1227566299.4557.10.camel@xxxxxxxxxxxxxxxxxx> <1227569919.10096.29.camel@bozo> <1227570519.4557.24.camel@xxxxxxxxxxxxxxxxxx>
Reply-to: markgw@xxxxxxx
User-agent: Thunderbird 2.0.0.18 (Windows/20081105)


Nathan Scott wrote:
On Tue, 2008-11-25 at 10:38 +1100, Ken McDonell wrote:
I believe the problem is in pmdate -1d when you're within an hour of
midnight and there was a DST adjustment in the previous 23-25 hrs ...
there is no good answer here, pmdate cannot produce the 100% right
answer no matter what.


pmdate should return an error when the date/time it is being asked
to report does not exist in the local timezone. (sounds like SciFi,
but it's a real "temporal discontinuity"). The error would have
to be handled all the way out to pmlogger_daily et al.

Cheers
-- Mark

<Prev in Thread] Current Thread [Next in Thread>