PHP strtotime returning false for dates less than 1900

前端 未结 2 1144
情话喂你
情话喂你 2021-01-19 18:53

I know this question is very popular

Asked here PHP: strtotime is returning false for a future date? and here How can I work with dates before 1900 in PHP?

2条回答
  •  走了就别回头了
    2021-01-19 19:03

    AFAIK, you are limited to these two solutions.

    You should update to 64-bit system if you can afford it, and if it solves a problem then that's better.

    Edit: Just had to check: http://php.net/manual/en/function.runkit-function-redefine.php You could probably try and redefine strtotime() to work with dates prior to 1901.

提交回复
热议问题