Are unix timestamps the best way to store timestamps?

后端 未结 9 866
梦毁少年i
梦毁少年i 2020-12-07 16:26

I always use unix timestamps for everything, but am wondering if there is a better way.

What do you use to store timestamps and why?

9条回答
  •  遥遥无期
    2020-12-07 16:55

    What era do you need to store and to what resolution? If you need microseconds, or dates in the stone age time_t might not be the best. For general business purposes it's quite good (assuming 64bit)

提交回复
热议问题