From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: January 19, 2038
Date: Thu, 28 Jan 1999 21:51:11 -0700 (MST) [thread overview]
Message-ID: <199901290451.VAA05957@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <Pine.LNX.4.04.9901282233020.667-100000@draal.physics.wisc.edu> from "Bob McElrath" at Jan 28, 99 10:37:21 pm
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
next prev parent reply other threads:[~1999-01-29 4:52 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-28 16:28 January 19, 2038 Dan Morrill
1999-01-28 21:24 ` Paul Tomblin
1999-01-28 22:18 ` mgraffam
1999-01-29 0:42 ` Re[2]: " Dan
1999-01-29 0:56 ` Paul Tomblin
1999-01-28 21:26 ` Andrei A. Dergatchev
1999-01-28 22:37 ` Bob Taylor
1999-01-28 22:51 ` Daniel J. Frasnelli
1999-01-28 23:08 ` Richard Hadsell
1999-01-28 23:20 ` Daniel J. Frasnelli
1999-01-29 4:24 ` Michal Jaegermann
1999-01-29 4:51 ` Quant-X Alpha Linux Support
1999-01-28 23:07 ` off-topic thought on problematic dates (was Re: January 19, 2038) Ari Jort
1999-01-29 0:08 ` Paul Tomblin
1999-01-28 23:23 ` January 19, 2038 Adam C. Powell, IV
1999-01-29 3:42 ` Bob Taylor
1999-01-29 4:04 ` Michal Jaegermann
1999-01-29 4:37 ` Bob McElrath
1999-01-29 4:51 ` Michal Jaegermann [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-01-28 22:58 Peter W. Borders
1999-01-29 9:51 Wessels, Hans
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox