'How to determine data block encoding method?
It is known that the HEX code: 08 45 DB 3C 7E D0 05 means the timestamp range (192 lines)
"2021-11-11 10:24:49 013000us"
"2021-11-11 10:24:49 113000us"
...
"2021-11-11 10:25:08 113000us"
HEX code: 07 45 DB 3C 7E D0 05 means the timestamp range (192 lines)
"2021-11-11 10:24:49 012999us"
"2021-11-11 10:24:49 112999us"
...
"2021-11-11 10:25:08 112999us"
HEX code: 00 45 DB 3C 7E D0 05 means the timestamp range (192 lines)
"2021-11-11 10:24:49 012992us"
"2021-11-11 10:24:49 112992us"
...
"2021-11-11 10:25:08 112992us"
How to determine the encoding method for timestamp range?
Solution 1:[1]
It looks like a Unix time multiplied by 1,000,000, and then microseconds added. In little-endian order. That gives the first time of each of your ranges, sort of. For example, for your first one I get 13000 microseconds after 2021-11-11 07:24:49 GMT. So you are showing three hours after GMT, e.g. Moscow time.
The range must be implied.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mark Adler |
