Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > Re: Packed Date...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 1010 of 1118
Post > Topic >>

Re: Packed Date problem

by Marco van de Voort <marcov@[EMAIL PROTECTED] > Mar 21, 2007 at 02:35 PM

On 2007-03-21, mljdth <mljdtj@[EMAIL PROTECTED]
> wrote:
>
> I'm trying to extract data from a file generated by an old Turbo
> Pascal program. (Not sure which version exactly)..
> Using a hex editor, I have determined that the dates are 2 bytes in
> length.. Some examples are:
>
> EA40 = 59968 = 7/1/06
> EB40 = 60224 = 7/2/06
> 5E41 = 24129 = 10/25/06
> 7241 = 29429 = 11/14/06
>
> I cannot determine how the dates are encoded.. Any suggestions?

They are written as a word, so your notation is byteswapped. It is
probably
$40EA,$40EB,$415E,$4172 etc.

And that looks awfully like simply days after a date (1/1/1960 or maybe
the
authors birthday).
 




 6 Posts in Topic:
Packed Date problem
"mljdth" <ml  2007-03-21 06:42:36 
Re: Packed Date problem
Marco van de Voort <ma  2007-03-21 14:35:04 
Re: Packed Date problem
"Jochen" <jo  2007-03-21 16:04:25 
Re: Packed Date problem
"Jochen" <jo  2007-03-21 16:13:00 
Re: Packed Date problem
"mljdth" <ml  2007-03-21 14:53:38 
Re: Packed Date problem
Dr J R Stockton <jrs@[  2007-03-21 23:49:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 23:45:48 CDT 2008.