~略~ // BEGIN: borrowed and modified from http://de3.php.net/manual/en/function.filesize.php function time_translate($seconds) { $array = array( '年' => 60 * 60 * 24 * 365.25, '月' => 60 * 60 * 24 * 30.5, '週間' => 60 * 60 * 24 * 7, '日' => 60 * 60 * 24, '時間' => 60 * 60, '分' => 60, '秒' => 1, ); foreach ($array as $name=>$secs) { if ($seconds < $secs && $secs != end($array)) continue; $resv = floor($seconds / $secs); $res .= ' ' . $resv . $name; $seconds -= $resv*$secs; } return trim($res); } // END: borrowed and modified from http://de3.php.net/manual/en/function.filesize.php ~略~