📅  最后修改于: 2022-03-11 14:54:28.075000             🧑  作者: Mango
$now = new DateTime;
$ago = new DateTime($someTimeAgo);
$diff = $now->diff($ago);
$formattedTime = $diff->format('%H:%I:%S');