Messages in this thread | ![/](/images/icornerl.gif) | | Subject | Re: Two bugs in kernel time code | Date | Thu, 18 Sep 1997 08:23:04 +0200 (MET DST) | From | (Rogier Wolff) |
| |
Philip Gladstone wrote: > My revolting approach to this is to have a sysconfig variable that gives > the offset of the CMOS clock from UTC. This defaults to 'unknown'. If it > is known, then the CMOS clock is updated with the correct hour (etc) > values.
How about just calculating the difference between the unix clock and the CMOS clock. If that's within 10 minutes of a whole number of hours, then you can safely round it to "a whole number of hours".
Roger.
-- ** R.E.Wolff@BitWizard.nl ** +31-15-2137555 ** http://www.BitWizard.nl/ ** Florida -- A 39 year old construction worker woke up this morning when a 109-car freigt train drove over him. According to the police the man was drunk. The man himself claims he slipped while walking the dog. 080897
| ![\](/images/icornerr.gif) |