On 12/8/06, Деревянных Семен Владимирович
GG> I'm currently writing a code that retrieves the file information
GG> from a TREO and displays it on a PC.  Problem I'm having is
GG> finding the library that contains the DateSecondsToDate function
GG> so I can use it on a PC.  Is there such a thing or does that
GG> function only work on Palm devices?

palm stores its "seconds" since Jan 1, 1904 (Palm Epoch). traditionally;
most unix and windows systems store the date from Jan 1, 1970 (UTC).
so; technically - you should be able to add/substract a constant between
the results to convert..

#define SEC_BETWEEEN_1904_AND_1970_UTC 2082844800

the "Palm File Format Specification" defines this constant (documentation)

for standard time.h functions in C:

http://www-ccs.ucsd.edu/c/time.html

--
// Aaron Ardiri

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

Reply via email to