📜  减去 2 个日期 php 代码示例

📅  最后修改于: 2022-03-11 14:54:20.698000             🧑  作者: Mango

代码示例2
$datetime1 = strtotime('May 3, 2012 10:38:22 GMT');
$datetime2 = strtotime('06 Apr 2012 07:22:21 GMT');

$secs = $datetime2 - $datetime1;// == 
$days = $secs / 86400;