summaryrefslogtreecommitdiff
path: root/app/Core/DateParser.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/DateParser.php')
-rw-r--r--app/Core/DateParser.php14
1 files changed, 1 insertions, 13 deletions
diff --git a/app/Core/DateParser.php b/app/Core/DateParser.php
index 5d770241..b9aa9230 100644
--- a/app/Core/DateParser.php
+++ b/app/Core/DateParser.php
@@ -239,23 +239,11 @@ class DateParser extends Base
*/
public function getHours(DateTime $d1, DateTime $d2)
{
- $seconds = $this->getRoundedSeconds(abs($d1->getTimestamp() - $d2->getTimestamp()));
+ $seconds = abs($d1->getTimestamp() - $d2->getTimestamp());
return round($seconds / 3600, 2);
}
/**
- * Round the timestamp to the nearest quarter
- *
- * @access public
- * @param integer $seconds Timestamp
- * @return integer
- */
- public function getRoundedSeconds($seconds)
- {
- return (int) round($seconds / (15 * 60)) * (15 * 60);
- }
-
- /**
* Get ISO-8601 date from user input
*
* @access public