+ add the feature of import 2 today.

This commit is contained in:
wangchunsheng
2009-11-06 08:16:52 +00:00
parent 63582e6c90
commit 28df2d4e89
6 changed files with 47 additions and 11 deletions
+11
View File
@@ -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)
{