[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Daylight savings time fix for WinNT
From: |
Derek R. Price |
Subject: |
Re: Daylight savings time fix for WinNT |
Date: |
Tue, 21 Nov 2000 20:14:00 -0500 |
"Derek R. Price" wrote:
> I've managed to isolate the problem. Turns out it's not in the time
> libraries at all. stat on NT returns different [acm]times depending on
> whether Daylight Savings Time (DST) is in effect or not (+3600 seconds
> during DST). Since I can change my time zone without changing the UTC mtime
> returned by stat I can only assume that whoever wrote the Windoze stat
> function must have tried to account for DST when they didn't need to.
>
> I'm going to search MSDN for a few for a recommended solution, but if I
> can't find one I'll check in a stat wrapper that will subtract the errant
> 3600 seconds from mtime, ctime, and atime under Windoze.
Checked in. I decided against the GetFileTime function because I didn't want to
hassle with the WinAPI that much and opted for the POSIXness of the wrapper
solution.
Derek
--
Derek Price CVS Solutions Architect ( http://CVSHome.org )
mailto:dprice@openavenue.com OpenAvenue ( http://OpenAvenue.com )
--
I am not a dentist.
I am not a dentist.
I am not a dentist...
- Bart Simpson on chalkboard, _The Simpsons_