time_t fields
Hello Andrew,
I'm using your library to access a thirdy party binary file containing stock data. The file has a fixed header of 144 bytes and a body made of n record of 44 bytes. Unfortunately, in both header and body, there are 4 bytes storing a "time_t" value that I'm unable to convert.
Here is the
'struct HistoryHeader
'{
' Int Version; // database Version
' char copyright[64]; // copyright info
' char symbol[12]; // symbol name
' Int period; // symbol timeframe
' Int digits; // the amount of digits after decimal point in the symbol
' time_t timesign; // timesign of the database creation (4 bytes)
' time_t last_sync; // the last synchronization Time (4 bytes)
' Int unused[13]; // To be used in future (13 elem. array of Int -> 13*4=52 bytes)
'};
and
'struct RateInfo
'{
' time_t ctm; // current Time in seconds (4 bytes) Contains both date and time
' double open;
' double low;
' double high;
' double close;
' double vol;
'};
The format should be the same as the fields inclueded in the Adaptors structure
'632 time_t LeaseObtained;4
'636 time_t LeaseExpires;4
but they have not been converted.
Could you please give me any suggestion on how to convert such values or, better, could you please update your library to allow "to" and "from" conversion?
Many thanks
Mimmo
|