My code is
$start_time= time();
echo "<BR><BR>";
echo "start: ".date("G:i:s",$start_time);echo "<BR>";
echo "now: ".date("G:i:s",time());echo "<BR>";
echo "difference: ".date("G:i:s",time()-$start_time);echo "<BR>";
echo "<BR><BR>";
echo time()-$start_time;
echo "<BR><BR>";
and the output is
start: 12:03:41
now: 12:06:04
difference: 10:02:23
143
Any idea why number of hours is not 0?
Have you tried explicitly setting a time zone for you script?