Re: time_t size: The year 2038 bug Summary:

Michal Jaegermann (michal@ellpspace.math.ualberta.ca)
Wed, 12 Jan 2000 10:02:11 -0700 (MST)


Scott Henry <scotth@sgi.com> writes:
> % TZ=GMT perl -MTime::localtime -le '$t=(2**31)-1;print $t;print ctime($t);'
> Tue Jan 19 03:14:07 2038

Well, my perl on Linux happens to print:

$ perl -le 'print scalar gmtime 2**55 + 2**54 + 2**52 + 2**51'
$ Mon Jul 28 15:21:36 1926632747

and also

$ perl -le 'print scalar gmtime -2**55 - 2**54 - 2**52 - 2**51'
$ Sat Jun 6 08:38:24 -1926628808

but this is Alpha. :-)

Yes, I am well aware about various "embedded" time fields in file
systems and data.

Michal

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/