diff options
Diffstat (limited to 'core/Period/Day.php')
-rw-r--r-- | core/Period/Day.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/Period/Day.php b/core/Period/Day.php index a5eda257ed..32686a0f51 100644 --- a/core/Period/Day.php +++ b/core/Period/Day.php @@ -41,6 +41,15 @@ class Piwik_Period_Day extends Piwik_Period return $out; } + public function isFinished() + { + $todayMidnight = Piwik_Date::today(); + if($this->date->isEarlier($todayMidnight)) + { + return true; + } + } + public function getNumberOfSubperiods() { return 0; |