> When I grab a database from my device (a database that was created on the
> device) and then read out the PDB file I notice that the dates are based on
> seconds since 1970.  According to the PDB spec it should be seconds since
> 1904.  I wonder if the HotSync is converting the date formats?

There are many date formats at work, depending on the application that
created the database. Many third-party tools use the Unix style of
seconds since 1/1/1970. Some Palm dates are actually in this format too,
some are seconds since 1/1/1904, some are in a structure that has
different fields for year, month, day, hour etc, some are in a 2 byte
integer that is split into year, month and day using a weird split on
bits.

If your application expects dates in the 1/1/1904 style, then use that.

Cheers,
Jim Cooper

____________________________________________

Jim Cooper      [EMAIL PROTECTED]
Tabdee Ltd      http://www.tabdee.ltd.uk

TurboSync - Connecting Delphi with your Palm
____________________________________________

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

Reply via email to