From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 9536 invoked from network); 29 Jan 1999 04:52:17 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 29 Jan 1999 04:52:17 -0000 Received: from ellpspace.math.ualberta.ca (michal@ellpspace.math.ualberta.ca [129.128.88.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id XAA05127 for ; Thu, 28 Jan 1999 23:51:15 -0500 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id VAA05957 for axp-list@redhat.com; Thu, 28 Jan 1999 21:51:11 -0700 From: Michal Jaegermann Message-Id: <199901290451.VAA05957@ellpspace.math.ualberta.ca> Subject: Re: January 19, 2038 To: axp-list@redhat.com Date: Thu, 28 Jan 1999 21:51:11 -0700 (MST) In-Reply-To: from "Bob McElrath" at Jan 28, 99 10:37:21 pm Content-Type: text Bob McElrath wrote: > > > Here's an interesting one for you: > > Why does this happen? ;) > > > perl -e 'print scalar gmtime 0xf0c29d868bfd7f, "\n"' > Tue Dec 31 23:59:59 2147483647 > > perl -e 'print scalar gmtime 0xf0c29d868bfd80, "\n"' > Wed Jan 1 00:00:00 -2147483648 More interesting question is "how accurate are these time stamps?". (The answer is: "Hm, does Sun still exists?" :-). The funnier sport is how to beat indiosyncrasies of Perl argument passing without resorting to hex numbers. For example: perl -e 'print scalar gmtime 2**56-2**52+2**47, "\n"' Fri Jun 8 14:26:08 2145162627 Who has more? A direct translation of numbers posted by Bob is cheating. :-) Michal