Date: Fri, 25 Apr 1997 21:14:35 -0600 (MDT) From: Wes Peters <softweyr@xmission.com> To: Snob Art Genre <ben@narcissus.ml.org> Cc: questions@freebsd.org Subject: Re: Year2000 Message-ID: <199704260314.VAA13638@obie.softweyr.ml.org> In-Reply-To: <Pine.NEB.3.96.970423113048.25135A-100000@narcissus.ml.org> References: <3.0.32.19970423201327.0073c33c@mail.hexanet.fr> <Pine.NEB.3.96.970423113048.25135A-100000@narcissus.ml.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Christophe Prevotaux wrote:
% Does FreeBSD passes the year2000 ?
Snob Art Genre writes:
> Of course. :)
FreeBSD does suffer from a problem shared by all other 32-bit
implementations of UNIX, however -- it's clock will "roll over"
someday. The UNIX clock is implemented as a 32-bit signed integer
number of seconds since 00:00 Jan 1, 1970 GMT. According to this simple
program:
#include <stdio.h>
#include <time.h>
main()
{
time_t endEpoch = (time_t) 0x7fffffff;
printf("Time ends at %s", ctime(&endEpoch));
}
Time ends at Mon Jan 18 20:14:07 2038.
This is in MST; your mileage may vary (+/- 12 hours). The solution is,
of course, to move entirely to 64-bit processors before 2038. I think
we'll handle this one. ;^)
--
"Where am I, and what am I doing in this handbasket?"
Wes Peters Softweyr LLC
http://www.xmission.com/~softweyr softweyr@xmission.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704260314.VAA13638>
