时间记录,不是时间戳 $thismonth = date('m'); $thisyear = date('Y'); $startDay = $thisyear . '-' . $thismonth . '-1'; $endDay = $thisyear . '-' . $thismonth . '-' . date('t', strtotime($startDay)); //当月最后一天 $time1 =date('Y-m-1 H:i:s',strtotime($startDay)); //当月…