/** * test if it's the same day than the argument * @param clDate $obDate * @return bool */ function isSameDay(clDate $obDate) { if ($this->getYear() == $obDate->getYear() && $this->getDayYear() == $obDate->getDayYear()) { return true; } return false; }