function getMonSunday(){
$today = time();
$w = date('w',$today);
if($w=="0"){
$Monday = $today - 86400 * 6;
}else{
$Monday = $today - 86400 * ($w-1);
}
$Monday=strtotime(date('Ymd',$Monday));
$Sunday = $Monday + 86400 * 7-1;
$value['monday']=$Monday;
$value['sunday']=$Sunday;
return $value;
}
function getmonth(){
$y=date("Y",time());
$m=date("m",time());
$d=date("d",time());
$t0=date('t'); // 本月一共有几天
$value['startday']=mktime(0,0,0,$m,1,$y); // 创建本月开始时间
$value['endday']=mktime(23,59,59,$m,$t0,$y); // 创建本月结束时间
return $value;
}
$today = time();
$w = date('w',$today);
if($w=="0"){
$Monday = $today - 86400 * 6;
}else{
$Monday = $today - 86400 * ($w-1);
}
$Monday=strtotime(date('Ymd',$Monday));
$Sunday = $Monday + 86400 * 7-1;
$value['monday']=$Monday;
$value['sunday']=$Sunday;
return $value;
}
function getmonth(){
$y=date("Y",time());
$m=date("m",time());
$d=date("d",time());
$t0=date('t'); // 本月一共有几天
$value['startday']=mktime(0,0,0,$m,1,$y); // 创建本月开始时间
$value['endday']=mktime(23,59,59,$m,$t0,$y); // 创建本月结束时间
return $value;
}