When will System.currentTimeMillis() overflow?

后端 未结 6 1655
天涯浪人
天涯浪人 2020-12-01 04:04

I have a web app which orders stuff using a timestamp, which is just a long. My web app backend happens to be written in java, so I am using:

long timestamp          


        
6条回答
  •  暖寄归人
    2020-12-01 04:36

    "What can I do to prepare for this?"

    Well, you could have your coffin kitted out with the latest and greatest IT gear / geek toys. But somehow I think they will be a bit "outdated" in 292,278,994 AD. And you will be pretty bored with them by then.

    Mind you, you will have enough time to rewrite the OS from scratch to use a 128 bit clock. That sounds like a fun project to wile away the time. :-)

提交回复
热议问题