[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] TPJ Contest Winner



At 7:27 9/30/96, Alan Fry wrote:
>This is by the way, but playing with this puzzle I found the following:
>
>        gmtime(0) ->    Mon Feb  6 05:28:16 2040
>        localtime(0) -> Fri Jan  1 00:00:00 1904
>
>Does anyone else get this I wonder?

People who are one hour ahead of GMT (summer time, I'd guess it's called
still, there in ....uk).

The last second of classic Macintosh time (all 1 bits) is 06:28:15 on Feb
6, 2040.  So zero is one second later, and one hour earlier than that is
your
    gmtime(0) ->    Mon Feb  6 05:28:16 2040

  --John

[This is why up-to-date Mac apps use the 64-bit form of the timekeeping
calls in the toolbox...2040 approacheth at the usual rate of one year per
year (+/- epsilon).]

  --
   Development of software takes longer and costs more.
jwbaxter@olympus.net (John W. Baxter)  Port Ludlow, WA, USA