PHP was later than the 2038 timestamp. A typical timestamp in PHP that is used to solve the problem of timestamp in November is from 20:45:54 GMT, January 1, to 03:14:07 GMT. (Solution for solving the problem with the 2038 timestamp in This PHP example
A typical timestamp of PHP is from 20:45:54, January 1, December 13, 1901 to 03:14:07, January 1, January 19, 2038, Greenwich Mean Time. (The value range is the minimum and maximum values of 32-bit signed integers ). However, before PHP 5.1, this range was limited in some systems (such as Windows) from January 1-20, 1970 to January 19.
The 64-bit system will not be affected. if the 32-bit system is used, the new DateTime solution can be used.
The code is as follows:
$ Date = '2017-10-01 ';
$ Datetime = new DateTime ($ date );
Echo'
Normal time: ', $ datetime-> format ('Y-m-d H: I '),'
';
Echo'
Time overflow: ', date ('Y-m-d H: I', strtotime ($ date )),'
';
As there are still a lot of win2003 servers, the applicability of this solution is quite wide and I hope you will like it.
Explain the question processing solution for timestamps in January 2038. The typical timestamps of PHP are from 20:45:54, January 1, December 13, 1901 to 03:14:07, January 1, January 19, 2038, Greenwich Mean Time. (This example...