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,PHP,时分秒 From: https://www.cnblogs.com/xiaoxi-jinchen/p/16987799.html