$lastSeason = ceil((date('n'))/3)-1;//上季度 $lastSeasonBegin = date('Y-m-d', mktime(0, 0, 0, $lastSeason*3-3+1, 1, date('Y'))); //上季度起始时间 $lastSeasonEnd = date('Y-m-d',mktime(23,59,59,$lastSeason*3,date('t',mktime(0, 0 ,0,$lastSeason*3,1,date("Y"))),date('Y')));//上季度结束时间