Help me translate long value, expressed in hex, back in to a date/time

后端 未结 5 977
再見小時候
再見小時候 2021-01-26 02:08

I have a date value, which I\'m told is 8 bytes, a single \"long\" (aka int64) value, and converted to hex:

60f347d15798c901

How can I convert

5条回答
  •  误落风尘
    2021-01-26 02:49

    The value you've given is 36 hex digits, i.e. 18 bytes-worth. That's not an Int64 converted to hex.

    Go back to whoever gave you the explanation of the format and ask them to tell you the truth this time :)

    EDIT: Okay, next step: find out what that number is actually meant to mean. Ticks since 1970? Millis since AD 1? Do you know what your example string is meant to represent?

提交回复
热议问题