I know that the time();
function will stop working after Year 2038 right?
Are there any other related functions that might not work ?
For instance, is date();
going to work ok ? Is it safe to use it ?
I know that the time();
function will stop working after Year 2038 right?
Are there any other related functions that might not work ?
For instance, is date();
going to work ok ? Is it safe to use it ?
You won't be able to use the date()
function but if you use the DateTime class, it will work for nearly everything except DateTime::getTimestamp
because that would return a Unix timestamp, which would of course be the wrong date.
Edit: getTimestamp
will continue to function correctly on 64-bit machines; the problem lies with 32-bit machines as the number would be too big and would then wrap around to the wrong date.