📜  微时到日期 php 代码示例

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

代码示例2
echo date("H:i:s",$endtime-$starttime);

$duration = $endtime-$starttime;
$hours = (int)($duration/60/60);
$minutes = (int)($duration/60)-$hours*60;
$seconds = (int)$duration-$hours*60*60-$minutes*60;