📌  相关文章
📜  在几分钟内找出两个日期之间的差异 - 无论代码示例

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

代码示例1
$time = new DateTime("2012-09-21 12:12:22");
$diff = $time->diff(new DateTime());
$minutes = ($diff->days * 24 * 60) +
           ($diff->h * 60) + $diff->i;