Hello I am using strtotime
function to subtract time but I am not able to getting such true value of it.
$time = strtotime('00:00:00');
$time1 = strtotime('23:00:00');
$t = $time - $time1;
echo "diff".$t1 = date('H:i:s',$t);
But am getting $t = 2:00:00
Instead of i get 1:00:00
Any one have idea whats gone wrong ?