rendered paste bodyfunction duration($time){ if ($time == 0) return 'N/A'; $t = $time / 60; if ($t < 1) return round($time) . ' seconds'; $time = $t; $t = $time / 60; if ($t < 1) return round($time) . ' minutes'; $time = $t; $t = $time / 24; if ($t < 1) return round($time) . ' hours'; $time = $t; $t = $time / 7; if ($t < 1) return round($time) . ' weeks'; $time = $t; $t = $time / 52; if ($t < 1) return round($time) . ' years'; return "{$time} years";}then you can use this to print out the stuff..<td class="timeplayed <?=$player->timePlayed == 0 ? 'none' : ''?>"><?=duration($player->timePlayed)?></td><td class="lastplayed"><?=duration(time() - $player->lastPlayed)?> ago</td>