Re: time_t size: The year 2038 bug Summary:

From: Michal Jaegermann (michal@ellpspace.math.ualberta.ca)
Date: Wed Jan 12 2000 - 12:02:11 EST


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/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:20 EST