Menu
I’m at a loss on how to show the difference in time with my script, I have thus far:
[code=php]<?php
$date_today = 1263305013;
$last_update = 1263393544;
if($date_today > $last_update)
{
echo ‘New day’;
}else{
echo ‘Still time to go till next update: ‘;
echo date(‘G:i:s’,abs($date_today – $last_update));
}
echo ‘<br />’;
echo ‘Last Update: ‘. date(“F j, Y, g:i:s”,$date_today).'<br />’;
echo ‘Next Update: ‘ . date(“F j, Y, g:i:s”,$last_update).'<br />’;
?>
But I would like to show Still time to go till next update: 18 hours 23 min. Any suggestions on how to achieve this? thanks