📅  最后修改于: 2022-03-11 14:59:47.034000             🧑  作者: Mango
$time = new DateTime("2012-09-21 12:12:22");
$diff = $time->diff(new DateTime());
$minutes = ($diff->days * 24 * 60) +
($diff->h * 60) + $diff->i;