<?php
date_default_timezone_set('PRC'); //设置为北京时间
$t=date("H");
if ($t<"20") {
echo "Have a good day!";
} else {
echo "Have a good night!";
}
?>