Home > Backend Development > PHP Tutorial > PHP strtotime('2039-01-01') 返回空

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:30:33
Original
1746 people have browsed it

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

回复内容:

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

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

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

Related labels:
php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template