I think this can help you.
<?php
$t1 = strtotime('2011/09/19 09:18:22 AM');
$t2 = strtotime('2011/09/22 03:22:18 PM');
$delta_T = ($t2 - $t1);
$day = round(($delta_T % 604800) / 86400);
$hours = round((($delta_T % 604800) % 86400) / 3600);
$minutes = round(((($delta_T % 604800) % 86400) % 3600) / 60);
$sec = round((((($delta_T % 604800) % 86400) % 3600) % 60));
echo $day." days"."<br/>";
echo $hours." hours"."<br/>";
echo $minutes." minutes"."<br/>";
echo $sec." sec"."<br/>";
?>
lyrico
Junior Poster in Training
94 posts since Dec 2010
Reputation Points: 33
Solved Threads: 15