PHPstrtotime ('2017-01-01 ') returns NULL

Source: Internet
Author: User
PHPstrtotime (& #039; 2039-01-01 & #039;) returns an empty strtotime value of the int type. Therefore, if it is converted to 2039, null is returned. Gmmktimemktime also returns the int type. Is there any other replacement method? PHP strtotime ('2017-01-01 ') returns NULL
Strtotime returns the int type. Therefore, if it is converted to 2039, null is returned.
Gmmktime mktime also returns the int type.
Is there any other replacement method?

Reply content:

PHP strtotime ('2017-01-01 ') returns NULL
Strtotime returns the int type. Therefore, if it is converted to 2039, null is returned.
Gmmktime mktime also returns the int type.
Is there any other replacement method?

5.5.26 is normal. What is your version.
Valid timestamps are usually from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT
Http://php.net/manual/zh/function.strtotime.php

Is gmmktime and mktime converted normally? You can change the php version. The operating system and php version both need 64-bit.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.