Binary to Date (C#) 64 Bit Format

Posted by Veskechky on Stack Overflow See other posts from Stack Overflow or by Veskechky
Published on 2010-04-13T13:43:57Z Indexed on 2010/04/13 14:03 UTC
Read the original article Hit count: 339

Filed under:
|
|
|

We have a binary file from which we have identified the following dates (as Int64). We now the following facts about the Date/Time format;

  • The 64 bit Date has a resolution to the microsecond
  • The 64 bit Date has a range of 4095 years
  • The Int64 9053167636875050944 (0x7DA34FFFFFFFFFC0) = 9th March 2010
  • The Int64 9053176432968073152 (0x7DA357FFFFFFFFC0) = 10th March 2010
  • The Int64 9053185229061095360 (0x7DA35FFFFFFFFFC0) = 11th March 2010
  • The Int64 9053194025154117568 (0x7DA367FFFFFFFFC0) = 12th March 2010

Any help on figuring out a way to convert this to a valid C# Date/Time is appreciated.

© Stack Overflow or respective owner

Related posts about datetime

Related posts about c#