home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,418 of 2,978   
   Marco van de Voort to mljdth   
   Re: Packed Date problem   
   21 Mar 07 14:35:04   
   
   From: marcov@stack.nl   
      
   On 2007-03-21, mljdth  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).   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca