How many times have you manually calculated the hours, minutes and
seconds between two dates? I was doing that again (for the million'th
and one times) and thought.... there should be a different way to do
this.... Here is what I came up with (I don't know if it's more
efficient than the old stand by's or not, but it is different).
<?PHP
$cTime = time() - filemtime( $_SERVER["SCRIPT_FILENAME"] );
printf( "Script Age: %d days %s",
(int)($cTime / 86400),
gmstrftime( "%H:%M:%S", $cTime ) );
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php