//秒数转为时分秒
private function changeTimeType($seconds){
if ($seconds>3600){
$hours=intval($seconds/3600);
$minutes=intval(($seconds-$hours*3600)/60);
$the_seconds=intval($seconds-$hours*3600-$minutes*60);
$time = $hours.":".$minutes."'".$the_seconds."\"";
}elseif($seconds>60&&$seconds<3600){
$minutes=intval(($seconds)/60);
$the_seconds=intval($seconds-$minutes*60);
$time=$minutes."'".$the_seconds."\"";
}else{
$time=$seconds."\"";
}
return $time;
}
秒数转时分秒函数
最新推荐文章于 2023-04-29 15:39:22 发布