diff options
Diffstat (limited to 'core/Period.php')
-rw-r--r-- | core/Period.php | 20 |
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 |