The_Wolf

Posts: 803

Reputation:

14th Dec 03, 12:33am | Quote | Blogs | Profile | RSS Feed
Azz0r, if you would be kind enough to post the time diff function we made I would be very happy!

( as I tried making it again and its a little fucked up :/ )
Now playing: Frenzal Rhomb

Russel Crowe's Band (Is A Fucking Pile Of Shit)

azz0r

Posts: 30,729

Reputation:

14th Dec 03, 12:59am | Quote | Blogs | Profile | RSS Feed
function TimeDiffo($time)<
{$uptime = time() - $time;<
$year = floor($uptime / 31104000);<
$month = floor(($uptime % 31104000) / 2592000);<
$day = floor((($uptime % 31104000) % 2592000) / 86400);<
$hour = floor(((($uptime % 31104000) % 2592000) % 86400) / 3600);<
$minute = floor((((($uptime % 31104000) % 2592000) % 86400) % 3600) / 60);<
$second = floor((((($uptime % 31104000) % 2592000) % 86400) % 3600) % 60);<
<
if ($year) {return $year . "y $month" . 'm';} elseif ($month and !$year){return $month . "m $day" . 'd';}<
elseif ($day and !$month){return $day . "d $hour" . 'h';}<
elseif ($hour and !$day){return $hour . "h $minute" . 'm';}<
elseif ($minute and !$hour){return $minute . "m $second" . 's';}<
elseif ($second and !$minute){return "$second" . 's';}}<
After all you put me through
You'd think I'd despise you
But in the end I wanna thank you
'Cause you made me that much stronger