//秒数转时分秒
function changeTimeType($seconds){
$seconds = intval($seconds);
if ($seconds >3600){
$hours =intval($seconds/3600);
$minutes = $seconds % 3600;
$time = $hours.":".gmstrftime('%M:%S',$minutes);
}else{
$time = gmstrftime('%H:%M:%S',$seconds);
}
return $time;
}
php将秒数转为时分秒格式,用于倒计时
猜你喜欢
转载自blog.csdn.net/msllws/article/details/104743654
今日推荐
周排行