Alexander Amelkin 0b6abe8cd9
mc: guid: Fix timestamp decoding
Before this commit the 'Timestamp' line was always printed
for all versions of GUID, even for non-time-based ones.

Plus, only the time_low field was used, and it was used as if
it contained seconds since UNIX Epoch, which it didn't. In fact
this field along with other time_* fields constitute a single
60-bit value representing the count of 100ns intervals since
adoption of Gregorial calendar (00:00:00.00 15 Oct 1582).

For non-time-based versions of GUID, the time_* fields do
not represent any time at all.

So, after this commit, the timestamp will be properly decoded
for time-based GUID version 1 only. For other versions the
'Timestamp' line will not be displayed. A line showing the
GUID version will be added to the output.

Partially resolves ipmitool/ipmitool#25

Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
2018-08-21 17:30:26 +03:00
..
2016-05-16 19:18:19 +02:00
2018-08-06 15:59:06 +03:00
2018-08-06 15:59:06 +03:00
2018-08-21 17:30:26 +03:00
2016-09-01 11:27:10 +02:00
2016-11-02 10:32:36 +01:00
2016-02-27 10:03:44 +01:00
2015-02-05 18:43:49 +01:00
2018-07-26 19:54:57 +03:00
2018-07-28 19:15:10 +03:00