<html>
<body>
<h1>PHP date output</h1>

<?php

$now  = time( );                            //get current date and time
$now  = $now - 5*60*60;                     //adjust for GMT - 5 hours
$hour = date("H", $now);                    //get the hour component

if ($hour < 12)
    print "Good Morning.";                  //print it on the HTML page
elseif ($hour < 20)
    print "Good Afternoon.";           
else
     print "Good Evening.";             

print " The current date and time is: ";   
print  date("m/d/Y  h:i:s A", $now);        //print date using that format

?>

<br>
<p><b>The rest of the web page  </b></p>

<?php include "../include.php"; ?>              <!-- hyperlink to see the code -->
</body>
</html>