Re: Y2K

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


On Fri, 19 Jun 1998, Jon Lewis wrote:

> On Fri, 19 Jun 1998, Richard B. Johnson wrote:
>
> > Problems will occur at (I think I remember) the year 2054 because
> > the time_t integer is not large enough. By that time, we should all have
> > 256-bit machines so the problem should go away.
>
> It's 2038 for 32-bit systems. Even with 64-bit systems, time_t wrap isn't
> an issue...unless you expect to be around in about 292471208649 years.

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

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