Quote:
Originally posted by TECK
1. There is a link I posted in the first thread that will explain the diff between, is done by Eva2000 at VB.com site.
2. For seconds, use this:
Code:
$sec = floor( $sys_ticks - ( $days * 60 * 24 ) - ( $hours * 60 ) - ( $min * 60 ) );
Then:
Code:
if ( $sec != 1 ) {
$value .= $sec . ' seconds';
} else {
$value .= $sec . ' second';
}
Just play with the "and" word...
|
This doesn't work quite right. I ended up with:
[Server UpTime: 9 days, 3 hours and 40 minutes and 775307 seconds]