/** * @return boolean */ public function equals(DateTime $dateTime) { return $this->toString() === $dateTime->toString(); }