本日
本周
$beginTime = strtotime(date('Y-m-d', strtotime("this week Monday", time())));
$endTime = strtotime(date('Y-m-d', strtotime("this week Sunday", time()))) + 24 * 3600 - 1;
本月
$beginTime = strtotime(date('Y-m-01 00:00:00',time()));
$endTime = $beginTime + date('t', $beginTime) * 24 * 3600;
本年