All,
I was wondering if someone could point me in the right direction to decode the following information.
I am working on a tool writen in C and one of the items in the file I am decoding is a timestamp in this format.
I had started looking at a bitfield structure, but I am wondering if there is a better / more portable solution.
Hex Value in the file: 9D AF 79 C0
Binary breakdown:
Format:
These parameters indicate the time when the file was opened, according to the following binary format:
I was wondering if someone could point me in the right direction to decode the following information.
I am working on a tool writen in C and one of the items in the file I am decoding is a timestamp in this format.
I had started looking at a bitfield structure, but I am wondering if there is a better / more portable solution.
Hex Value in the file: 9D AF 79 C0
Binary breakdown:
1001(9) 1101(D) 1010(A) 1111(F) 0111(7) 1001(9) 1100(C) 0000(0)
1001(9) 11011(27) 01011(11) 110111(55) 1(+) 00111(7) 000000(0)
Decoded Value: 09/27 11:55 +07:001001(9) 11011(27) 01011(11) 110111(55) 1(+) 00111(7) 000000(0)
Format:
These parameters indicate the time when the file was opened, according to the following binary format:
- The first four binary bits indicate the month (1 .. 12), according to the CGF"s local time zone;
- The next five binary bits contain the date (1 :: 31), according to the CGF"s local time zone;
- The next five binary bits contain the hour (0 .. 23), according to the CGF"s local time zone;
- The next six binary bits contain the minute (0 .. 59), according to the CGF"s local time zone;
- The next bit indicates the sign of the local time differential from UTC (bit set to '1' expresses '+' or bit set to
- The next five binary bits contain the hour (0 .. 23) deviation of the local time towards UTC, according to
- The next six binary bits contain the minute (0 .. 59) deviation of the local time towards UTC, according to
Comment