//过去七天的时间戳
strtotime(date('Y-m-d 00:00:00',strtotime('-6 days')));
//每年1月1号的时间戳
echo strtotime(date('Y-01-01'));
// 每月1号的时间戳
$beginThismonth=strtotime("first day of this month 00:00:00");
echo $beginThismonth;
//每个季度1号的时间戳
$month = date('n');
quarter($month);
function quarter($month)
{
$quarter_val = '';
($month >= 4) ? ($month >= 7 ? ($month >= 10 ? $quarter_val = '10' : $quarter_val = '07') : $quarter_val = '04') : $quarter_val = '01';
$quarter_date = strtotime(date("Y-{$quarter_val}-01 00:00:00"));
return $quarter_date;
}