//算最近七天时间戳
$y = date("Y");
$mon = date("m");
$d = date("d");
//将今天开始的年月日时分秒,转换成unix时间戳(开始示例:2015-10-12 00:00:00)
$todayTime= mktime(0,0,0,$mon,$d,$y);
// 现在时间戳
$now=time();
//最终统计时间戳
$time = $todayTime-(7243600);
//算在这两个时间戳范围内的就行
$map['captureRQ']=array('BETWEEN',array($time,$todayTime));
网友评论