timezone stuff on 64 bit machines
Erik Troan
ewt at redhat.com
Wed Oct 18 20:23:10 UTC 1995
On Wed, 18 Oct 1995, Arthur David Olson wrote:
> > Is there a chance of getting a 64 bit fix for the timezone stuff?
>
> The fix is to use the fact that--at least for now--the calendar operates on
> a grand 2800-year cycle: any set of 2800 consecutive years contains exactly
> 1,022,679 days. A bit of modular arithmetic will get us where we want to be.
That's over my head, unless something like (days = days % 2800) will do
the trick...
Erik
-------------------------------------------------------------------------------
"Eggheads unite! You have nothing to lose but your yolks" - Adlai Stevenson
Erik Troan = http://sunsite.unc.edu/ewt/ = ewt at sunsite.unc.edu
More information about the tz
mailing list