srule_
01-11-2008, 04:40 PM
Hey,
I have the following code:
$timestamp = $row['last_seen'];
$curtime = time();
$lastSeen = $curtime - $timestamp;
echo $lastSeen;
Now only problem is that $lastSeen counts up in seconds, so instead of going to 1:00 mins it goes to 61secs.
Does anyone know of a way to display this time in a more user friendly fashion?
I have the following code:
$timestamp = $row['last_seen'];
$curtime = time();
$lastSeen = $curtime - $timestamp;
echo $lastSeen;
Now only problem is that $lastSeen counts up in seconds, so instead of going to 1:00 mins it goes to 61secs.
Does anyone know of a way to display this time in a more user friendly fashion?