<?

echo date("dS M Y H:i:sa ");
echo "<br><br>";

$now=time();

echo date('d M Y',$now);

//calculate next week - seconds in a day * 7
$nextweek=$now + (86400 * 7);
echo "<br><br>";
echo date('d M Y',$nextweek);

//find out how many days until assignment handin
$handin=1462316400;//timestamp for 3rd May
echo "<br><br>";
$sth=$handin-$now;
echo "Seconds to handin:".$sth."<br>";
$mth=$sth/60;
echo "Minutes to handin:".$mth."<br>";
$hth=$mth/60;
echo "Hours to handin:".$hth."<br>";
$dth=$hth/24;
echo "Days to handin:".$dth."<br>";

$dth=round($dth,2);
echo "Days to handin:".$dth."<br>";








?>