dbTalk Databases Forums  

Date extraction from old BTrieve system

comp.databases.btrieve comp.databases.btrieve


Discuss Date extraction from old BTrieve system in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim
 
Posts: n/a

Default Date extraction from old BTrieve system - 04-11-2005 , 07:54 AM






Hi. I'm trying to extract some data from an old BTrieve system.
The system stored its files as .M files (on DOS).
I've used butil -recover to get these into a plain(ish) text
file, but I'm having a problem with dates.
It seems to store the dates as a four-byte format of some
sort but it's not one I've seen before.

As an example, '01/01/97' is stored as:
02 69 04 80 (decimal)

and '01/07/89' is stored as:
02 68 119 09 (decimal)

Any ideas? I'm guessing it's a number of hours/days/something
since some offset but I'm not sure.

Thanks,

Jim
--
Find me at http://www.ursaMinorBeta.co.uk
"Brace yourself, this might make your eyes water."

Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: Date extraction from old BTrieve system - 04-11-2005 , 09:03 AM






Why not enter a new date into the system, see what it places there.
Then, change the date by one day, see what shows up, and keep repeating
until you see the pattern. Trying to figure it out with values
differing by around 8 years will be pretty tough.

By the way, if it is using an integer offset, then you should put the
hex bytes into the Windows calculator in little-endian order to get the
proper value.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Chicago: Pervasive.SQL Service & Support - July 19-22 ***
*** Chicago: Pervasive DataExchange Class - July 27-29 ***



Jim wrote:

Quote:
Hi. I'm trying to extract some data from an old BTrieve system.
The system stored its files as .M files (on DOS).
I've used butil -recover to get these into a plain(ish) text
file, but I'm having a problem with dates.
It seems to store the dates as a four-byte format of some
sort but it's not one I've seen before.

As an example, '01/01/97' is stored as:
02 69 04 80 (decimal)

and '01/07/89' is stored as:
02 68 119 09 (decimal)

Any ideas? I'm guessing it's a number of hours/days/something
since some offset but I'm not sure.

Thanks,

Jim

Reply With Quote
  #3  
Old   
Jim
 
Posts: n/a

Default Re: Date extraction from old BTrieve system - 04-11-2005 , 10:59 AM



In article <d3e03o$ss9 (AT) dispatch (DOT) concentric.net>, Bill Bach wrote:
Quote:
Why not enter a new date into the system, see what it places there.
Then, change the date by one day, see what shows up, and keep repeating
until you see the pattern. Trying to figure it out with values
differing by around 8 years will be pretty tough.
Sadly I don't have access to the original system, just the data files.
I'm not so sure it's an integer offset anymore - I took two dates that
I know are 6months apart but the difference was something like 453.

Weird one.

Jim
--
Find me at http://www.ursaMinorBeta.co.uk
"Brace yourself, this might make your eyes water."


Reply With Quote
  #4  
Old   
nelsonsoft
 
Posts: n/a

Default Re: Date extraction from old BTrieve system - 04-11-2005 , 02:58 PM



If you need to build DDF files for your existing database you can
download BtSearch32 at www.nssdd.com. It will help you analyze the
data such as dates and build the DDF files. Once built then you can
use it to export to dbase or ascii.

Gil

Jim wrote:
Quote:
Hi. I'm trying to extract some data from an old BTrieve system.
The system stored its files as .M files (on DOS).
I've used butil -recover to get these into a plain(ish) text
file, but I'm having a problem with dates.
It seems to store the dates as a four-byte format of some
sort but it's not one I've seen before.

As an example, '01/01/97' is stored as:
02 69 04 80 (decimal)

and '01/07/89' is stored as:
02 68 119 09 (decimal)

Any ideas? I'm guessing it's a number of hours/days/something
since some offset but I'm not sure.

Thanks,

Jim
--
Find me at http://www.ursaMinorBeta.co.uk
"Brace yourself, this might make your eyes water."


Reply With Quote
  #5  
Old   
Bill Bach
 
Posts: n/a

Default Re: Date extraction from old BTrieve system - 04-12-2005 , 11:47 AM



Well, if it's not a Btrieve Date, and it's not a number, perhaps it is
an encoded date? Maybe they use 5 bits for the day, 4 bites for the
month, and the remainder for the year? See if that joves with
anything...

Jim wrote:

Quote:
In article <d3e03o$ss9 (AT) dispatch (DOT) concentric.net>, Bill Bach wrote:
Why not enter a new date into the system, see what it places there.
Then, change the date by one day, see what shows up, and keep
repeating until you see the pattern. Trying to figure it out with
values differing by around 8 years will be pretty tough.

Sadly I don't have access to the original system, just the data files.
I'm not so sure it's an integer offset anymore - I took two dates that
I know are 6months apart but the difference was something like 453.

Weird one.

Jim

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.