/** * Getting the difference between two dates * * @param UDate $date The other datetime to compare with * * @return DateInterval */ public function diff(UDate $date) { return $this->getDateTime()->diff($date->getDateTime()); }