>i have variables $Start, $End each with a timestamp 2 hours apart
>(2002070714, 2002070716) respectively
01234567890123
>
>How do i calculate those to timestamps to get the answer 2?
>
>I've tried working them into unix timestamps and then calculating but no
>luck...
>
>any one
";
$i=0;
do{
$i++;
}while($i<=100);
$stop=getmicrotime();
$difference=($stop-$start)/3600;
echo $start."".$stop."".$difference." Hours";
?>
Does this help...
- Lord Loh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2 matches
Mail list logo