//php中时间戳的区间运算$time = time();$mintime = strtotime('2013-05-20 15:32:21');$maxtime = strtotime('2015-06-20 14:12:01');if($time >= $mintime && $time <= $maxtime){ echo '有效区间';}else{ echo '无效区间';}