> I'm curious as to the datum chosen - why not Jan 1, 1970 like C (at
least
> the Borland implementation)? That will last until the 22nd century -
I'll
> be dead :(

As other people have mentioned, the 1904 date comes from the Macintosh,
which also used that as the beginning of its seconds-count epoch.  The
advantage of this date is that all years that can be represented by it
follow a simple pattern for computing leap years.  1900 wasn't a leap
year, but 2000 was, and the 32-bit value runs out before 2100 which is
not a leap year.  It makes the whole "seconds to date" calculation a
little easier.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to