...
|
...
|
@@ -27,10 +27,10 @@ class AdminStatisticsController extends AdminBaseController{ |
|
|
|
|
|
public function index(){
|
|
|
|
|
|
$week = strtotime("last Sunday");//把周日当做是一个礼拜的开始,如果想把周一当做是一个礼拜的开始,就把Sunday换成Mondy
|
|
|
echo date('Y-m-d H:i:s',$week);
|
|
|
$week = strtotime("last Monday");//把周日当做是一个礼拜的开始,如果想把周一当做是一个礼拜的开始,就把Sunday换成Mondy
|
|
|
echo date('Y-m-d H:i:s',$week).'</br>';
|
|
|
|
|
|
$week1 = strtotime("last Monday");//把周日当做是一个礼拜的开始,如果想把周一当做是一个礼拜的开始,就把Sunday换成Mondy
|
|
|
$week1 = strtotime("Monday");//把周日当做是一个礼拜的开始,如果想把周一当做是一个礼拜的开始,就把Sunday换成Mondy
|
|
|
echo date('Y-m-d H:i:s',$week1);
|
|
|
|
|
|
return $this->fetch();
|
...
|
...
|
|