lkml.org 
[lkml]   [1998]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Y2K
On 19 Jun 1998, Miquel van Smoorenburg wrote:
[SNIPPED]
>
> What about the CMOS chips that wrap around to 01-01-1980 at 01-01-2000?
> Shouldn't we make the check look like:
>
> year += 1900;
> /* Fix for CMOS chips without century bit */
> if (year < 1970)
> year += 100;
> /* Fix for CMOS chips that wrap around to 01-01-80 */
> if (year < 1995)
> year += 20;
>
> ... which will save us from 2000 .. 2015
>

But they don't. the 1/1/80 stuff is DOS. The timer chips keep the
BCD century, i.e. '19' in the century BYTE (not bit). Failure to
warp at the Y2K would make the time 1-1-1900. This is fixed in
the kernel so you have 99 years to reset the CMOS clock from the
BIOS or by using 'clock -w'.

Cheers,
Dick Johnson
***** FILE SYSTEM MODIFIED *****
Penguin : Linux version 2.1.105 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

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