Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Period.php')
-rw-r--r--core/Period.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/core/Period.php b/core/Period.php
index 0abd1f4ba3..ebcad4896d 100644
--- a/core/Period.php
+++ b/core/Period.php
@@ -135,6 +135,26 @@ abstract class Period
}
/**
+ * Returns the start date & time of this period.
+ *
+ * @return Date
+ */
+ public function getDateTimeStart()
+ {
+ return $this->getDateStart()->getStartOfDay();
+ }
+
+ /**
+ * Returns the end date & time of this period.
+ *
+ * @return Date
+ */
+ public function getDateTimeEnd()
+ {
+ return $this->getDateEnd()->getEndOfDay();
+ }
+
+ /**
* Returns the last day of the period.
*
* @return Date