I have a third party application that stores time series data as a packed binary file. I am trying to create a tool to convert the data stored in this file.
Shown below is a snapshot of this data.
41 16 00 00 01 00 D7 11 00 00 01 00 E8 55 A6 20 08 1E D0 08 00 00 00 60 59 D5
86 40 03 E8 F5 2C 22 08 1E D0 08 00 00 00 00 C0 0B 87 40 01 E8 95 B3 23 08 1E
D0 08 00 00 00 40 1E 00 87 40 01 E8 35 3A 25 08 1E D0 08 00 00 00 60 13 F8 86
40 01 E8 D5 C0 26 08 1E D0 08 00 00 00 40 65 09 87 40 01 E8 75 47 28 08 1E D0
08 00 00 00 20 8A F6 86 40 01 E8 15 CE 29 08
I know that this block of data corresponds to the following values.
5/13/2013 17:46:11.558 730.6686401
5/13/2013 17:46:14.118 737.46875
5/13/2013 17:46:16.678 736.0147705
I can extract the values: they are of type double. For instance, the 8 bytes 00 00 00 60 59 D5 86 40 correspond to 730.6686401.
But I am stumped by how to extract the datetime format. I know that it is buried in this string somewhere. How can I figure out what format the time is in?
I have been using Python's struct module for the type conversion.
Anybody have any ideas?