PHPで秒を日数、時間、分、秒に変換する方法
function convertSeconds($seconds) { $days = floor($seconds / (60 * 60 * 24)); $hours = floor(($seconds / (60 * 60)) % 24); $minutes = floor(($seconds / 60) % 60); $seconds = $seconds % 60; return array( 'days' => $days, 'hours' => $hours, 'minutes' => $minutes, 'se>>More