time() returns a non-formatted time string, you need to format the date var using the time... confused? Heres some code I knocked together...
<?
// set $time to system time //
$time1 = time();
// set vars //
$sec=1; $min=$sec60; $hr=$min60;
// set format for date/time //
$date_format = "l j F Y - H:i:s";
// configure $clock with the format and time //
$clock = date($date_format, $time1);
// print it out //
echo "The time now is: ".$clock." <br>" ;
// increase time //
$time1=$time1+$hr ;
// re-format date ... //
$date_format = "H:i:s";
// and the $clock //
$clock = date($date_format, $time1);
// print it out //
echo "In 1 hour (".$hr." msecs) the time will be: ".$clock." <br>" ;
// getting hold of the vars from the $clock array //
for ($x=0;$x<=7;$x++){ echo $clock["$x"]; }
?>