0
我需要比用户输入日期提前35年的日期。 在PHP下面的代码strtotime长时间不工作
$DoCndm=date("Y-m-d",strtotime($_POST['DoH'] ." +35 years"));
我发现它工作正常高达22年但对于23及以上为返回输出1970-01-01 ..它是一个错误?
我需要比用户输入日期提前35年的日期。 在PHP下面的代码strtotime长时间不工作
$DoCndm=date("Y-m-d",strtotime($_POST['DoH'] ." +35 years"));
我发现它工作正常高达22年但对于23及以上为返回输出1970-01-01 ..它是一个错误?
阅读此链接Year 2038 problem
不能使用上述2038年UNIX timstamp
您使用32位操作系统? – frz3993
它的64位,wamp64 –
除了为此找到的副本,请阅读http://stackoverflow.com/questions/2012589/php-mysql-year-2038-bug-what-is-it-how-to-solve-它 –