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

后端 未结 5 855
再見小時候
再見小時候 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:38

    I believe you can convert it to a decimal int with hexdec(). That will be a timestap that you can work on with date().

提交回复
热议问题