PHP: strtotime is returning false for a future date?

前端 未结 5 1828
南方客
南方客 2020-11-29 11:40

here are some debug expressions i put into eclipse, if you don\'t believe me:

\"strtotime(\"2110-07-16 10:07:47\")\" = (boolean) false    
\"strtotime(\"2110         


        
5条回答
  •  星月不相逢
    2020-11-29 12:07

    From the PHP manual:

    The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer). However, before PHP 5.1.0 this range was limited from 01-01-1970 to 19-01-2038 on some systems (e.g. Windows).

    See also: Year 2038 problem - Wikipedia

提交回复
热议问题