Jason Garrett <[EMAIL PROTECTED]> writes:
> Is anyone aware of a Palm function to convert unix time to Palm
> DateTime?

There are functions to convert to/from Macintosh time.  So if you can write
Unix<->Mac functions, you're done.

> Does anyone have an algorithmn?

If you want to be correct, take a look at pfdtime.c in prc-tools at
http://homepages.enterprise.net/jmarshall/palmos/build-prct.html.

If on the other hand you believe that standard C time is measured in seconds
since 1970-01-01, the magic number is 1970epoch - 1904epoch = 2082844800.

    John  "from Dunedin, myself :-)"

---
For information on using the Palm Developer Forums, or to unsubscribe, please see 
<http://www.palm.com/devzone/mailinglists.html>.

Reply via email to