strtotime不适用于长时间添加


strtotime not working for long time addition

我需要一个比用户输入的日期提前35年的日期。在php中使用以下代码

$DoCndm=date("Y-m-d",strtotime($_POST['DoH'] ." +35 years"));

我发现它可以正常工作22年,但23年及以上的输出为1970-01-01。。是虫子吗??

阅读此链接2038年问题

您不能使用超过2038年的unix时间戳