1获取时间戳 当天时间戳: //这里是当天时间戳 $start_today=strtotime(date("Y-m-d",time())); $end_today=strtotime(date('Y-m-d',time()))+86400-1; //本月时间戳 $start_month=strtotime(date('Y-m-01')); $end_month=strtotime(date('Y-m-d',strtotime('+1 day')