Home  >  Q&A  >  body text

PHP strtotime('2039-01-01') 返回空

PHP strtotime('2039-01-01') 返回空
strtotime 返回的是int类型,所以转2039年的,返回空。
gmmktime mktime 也都返回int类型。
有没有别的替换方式?

巴扎黑巴扎黑2653 days ago612

reply all(2)I'll reply

  • 迷茫

    迷茫2017-04-10 15:54:25

    5.5.26 正常,你的版本是多少。
    有效的时间戳通常从 Fri, 13 Dec 1901 20:45:54 GMT 到 Tue, 19 Jan 2038 03:14:07 GMT
    http://php.net/manual/zh/function.strtotime.php

    reply
    0
  • ringa_lee

    ringa_lee2017-04-10 15:54:25

    gmmktime和mktime转换正常?你换个php版本吧,操作系统和php版本都要64位的哦

    reply
    0
  • Cancelreply