8 hours back, best way to?

I use this method to go 8 hours back, is there any short/better way?


$unix_8hoursback = mktime(date("H")-8,date("i"),date("s"),date("n"),date("j"),date("Y"));
echo date("l jS M g:ia",$unix_8hoursback);

Sure, see strtotime().

echo date("l jS M g:ia", strtotime('-8 hours'));

Alternatively, you can use DateTime:


<?php 
$date = new DateTime('-8 hours');
echo $date->format('H:i:s');
?>