PHP将秒数转换成时分秒
作者:互联网
function changeTimeType($seconds) { $seconds = intval($seconds); if ($seconds > 3600) { $hours = intval($seconds / 3600); $time = $hours . ":" . gmstrftime('%M:%S', $seconds); } else { $time = gmstrftime('%H:%M:%S', $seconds); } return $time; }
标签:3600,秒数,intval,seconds,hours,time,gmstrftime,PHP,时分秒 来源: https://www.cnblogs.com/codeit/p/15907158.html