Have someone tips for retrieving the right dates values from the PDB Header (Create, Modify, Backup). The number of seconds stored in my PDBs converted to years give me just 33 years from 1904-01-01.
Dumping the database in an hex editor, the values for the dates fields are:
Creation: 3F-46-8C-47 = 1.060.539.463 secs / 86400 secs/day = 12.274 days /
365 = 33 years.
Modified: 3F-56-92-8C = 1.062.638.220 secs / 86400 secs/day = 12.299 days /
365 = 33 years.
BackUp: 3F-48-DC-EA = 1.061.739.754 secs / 86400 secs/day = 12.288 days /
365 = 33 years.
Any Suggestions?
Regardless of what you read in the File_Format_Spec.pdf document, there is, unfortunately, some inconsistency in the base date used for the dates stored in the PDB headers. On the Mac, the PDB files that get created typically have a base date of 1904-01-01. On Windows, the PDB files that get created typically have a base date of 1970-01-01. I even think that, under some circumstances, the base date can be 1900-01-01. In light of this, you can see that 33 years can be an appropriate interval.
-- Keith Rollin -- Palm OS Emulator engineer
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
