Re: Y2K

Richard B. Johnson (root@chaos.analogic.com)
Fri, 19 Jun 1998 09:43:58 -0400 (EDT)


On Fri, 19 Jun 1998, Alan Cox wrote:

> > Neither the kernel nor the C runtime library cares anything about
> > the year 2000. It is just a number presented for humans to read as
> > the internal time is parsed into ss:mm:hh:mm:dd:yyyy, etc.
>
> Bzzzt. Libc4 had several problems with ctime() turning 2000 into 100.
> Libc5 seems fine. See http://www.linux.org.uk/mbug.html

Hmm... I have used Libc4, but only asctime

#include<time.h>
main()
{
time_t t = 0x7fffffff;
printf("%s\n", asctime(localtime(&t)));
}

> 2038

Yep!

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