--- Richard Burmeister <[EMAIL PROTECTED]> wrote:
> RE: the "1904 dance" ... Macs store the year as (year-1904). Don't ask
> why. There were no Macs in 1904, other than the ones the Brits wore. :)
A reasonable explanation:
Most people think that a leap year happens whenever a year is evenly
divisible by 4. BUT, there's an exception for centuries (e.g. 1700, 1800,
and 1900). BUT there's an exception to the exception for centuries evenly
divisible by 400 (e.g. 2000).
So 2000 is a leap year, but 1900 is not (despite the fact they are both
evenly divisible by 4). That means that if you store your date as 32-bits
worth of seconds since 1904 you'll run out of time in about 2040.
And THAT means for all the years that you can represent, if it is evenly
divisible by 4, then it is a leap year, NO EXCEPTIONS.
-charles
=====
Charles E. Patisaul AppForge, Inc. http://www.AppForge.com
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/