Hi Keith,
thanks for your answer. I am using Windows.
Your answer makes sense, but:

Do You mean that the base date is OS dependent (I guess HotSync dependent)?
Can this be taken as a rule? The word "typically" is like allways, but not
allways.

My app will run also in Unix/Linux, do you know the behavior here? (I am not
sure if HotSync exists for this OS).

Best regards

Oscar

-----Mensaje original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] nombre de Keith
Rollin
Enviado el: Lunes, 22 de Septiembre de 2003 13:43
Para: Palm Developer Forum
Asunto: Re: PDB Header Dates


At 9:50 AM -0400 9/22/03, Oscar De Le�n wrote:
>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/




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

Reply via email to