For example, I mostly program in PHP. What can I do today to prevent my program from exploding in 2038 due to unix time stamp running out? I would love to see some specific algorithms, functions or logics that can work to prevent this problem. Thanks.
Share
Store the timestamp as a 64bit, or higher, integer. I’m sure MySQL will be updated by then so that
TIMESTAMPisn’t 32bit. In regards to PHP, I don’t see any issues there if you’re on a 64 bit server.