Why do timestamps have a limit to 2038?

后端 未结 4 1828
-上瘾入骨i
-上瘾入骨i 2020-11-30 05:59

I just found out, running a calendar script, that timestamps in PHP has a limit to 2038. What does it really mean? Why is it 2038 instead of 2050 or 2039? Why a limit if tim

4条回答
  •  佛祖请我去吃肉
    2020-11-30 06:21

    my guess is that it is stored in a fixed number of bits, which means a limit on how big the timestamp can get. We could do some math to figure it out exactly.

提交回复
热议问题