diff --git a/RelativeDateParser.php b/RelativeDateParser.php old mode 100644 new mode 100755 index 0a8a42c..861f76d --- a/RelativeDateParser.php +++ b/RelativeDateParser.php @@ -250,11 +250,15 @@ class RelativeDateParser { } - public function getCurrent(DateTime $now) { - return $this->datetype->getCurrent($now); + public function getCurrent() { + return $this->datetype->getCurrent($this->now); } - public function getNext(DateTime $now) { - return $this->datetype->getNext($now); + public function getNext() { + return $this->datetype->getNext($this->now); + } + + public function setNow(DateTime $now) { + $this->now = $now; } } \ No newline at end of file