+ add the feature of import 2 today.
This commit is contained in:
@@ -105,6 +105,11 @@ class todoModel extends model
|
||||
$begin = '1970-01-01';
|
||||
$end = '2109-01-01';
|
||||
}
|
||||
elseif($date == 'before')
|
||||
{
|
||||
$begin = '1970-01-01';
|
||||
$end = $this->yesterday();
|
||||
}
|
||||
else
|
||||
{
|
||||
$begin = $end = $date;
|
||||
@@ -182,6 +187,12 @@ class todoModel extends model
|
||||
return date('Ymd', time());
|
||||
}
|
||||
|
||||
/* 获得昨天的日期。*/
|
||||
public function yesterday()
|
||||
{
|
||||
return date('Y-m-d', strtotime('yesterday'));
|
||||
}
|
||||
|
||||
/* 获得当前的时间。*/
|
||||
public function now($delta = 15)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user