$start = "1982-11-20";$end = "1999-12-10;$ustart = strtotime($start);
$uend = strtotime($end);$now = time();
if ($now > $ustart && $now < $uend)
echo "当前时间是在指定时间范围内.";
$uend = strtotime($end);$now = time();
if ($now > $ustart && $now < $uend)
echo "当前时间是在指定时间范围内.";
SA=时A*60*60+分A*60+秒A
SB=时B*60*60+分B*60+秒Bif(SA<=S<=SB)YES;
else NO;