1.本月1号和本月28号的时间戳
$two_five = mktime(0,0,0,date('m'),1,date('Y'));
$two_seven = mktime(0,0,0,date('m'),28,date('Y'));
本月最后一天
$end_z = mktime(23,59,59,date('m'),date('t'),date('Y'));
2.上月第一天的时间戳和上月最后一天的时间戳
$begin_time = strtotime(date('Y-m-01 00:00:00',strtotime('-1 month')));
$end_time = strtotime(date("Y-m-d 23:59:59", strtotime(-date('d').'day')));
//1.今日
$beginToday=mktime(0,0,0,date('m'),date('d'),date('Y'));
$endToday=mktime(0,0,0,date('m'),date('d')+1,date('Y'))-1;
//2.本周
$beginzhou=strtotime(date('Y-m-d', strtotime("this week Monday", time())));
$endzhou=strtotime(date('Y-m-d', strtotime("this week Sunday", time()))) + 24 * 3600 - 1;
//3.本月
$beginThismonth=mktime(0,0,0,date('m'),1,date('Y'));
$endThismonth=mktime(23,59,59,date('m'),date('t'),date('Y'));