lkml.org 
[lkml]   [1997]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Two bugs in kernel time code
Date
From
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

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.050 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site