diff($date2); echo "difference " . $interval->y . " years, " . $interval->m." months, ".$interval->d." days "; // shows the total amount of days (not divided into years, months and days like above) echo "difference " . $interval->days . " days ";
下一篇:php计算时间差的方法
QQ客服
公众号
手机版
帮助中心