how do i display form on only some between time?

i have a form to be shown in between morning 10 am to evening 3 pm .. my server dates shows time 12:28  .., what is the best way to do?
LVL 36
Loganathan NatarajanLAMP DeveloperAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
phparmyConnect With a Mentor Commented:
<?php
$d=date("H:i:s");
if($d>="10:00:00" and $d<="15:00:00"){
//display form
}

?>
0
All Courses

From novice to tech pro — start learning today.