public function sameValueAs(ValueObjectInterface $date_time)
    {
        if (false === Util::classEquals($this, $date_time)) {
            return false;
        }

        return $this->getDate()->sameValueAs($date_time->getDate()) && $this->getTime()->sameValueAs($date_time->getTime());
    }
public function sameValueAs(ValueObjectInterface $date_time)
    {
        if (false === Util::classEquals($this, $date_time)) {
            return false;
        }

        return $this->getDate()->sameValueAs($date_time->getDate()) && $this->getTime()->sameValueAs($date_time->getTime());
    }
public function sameValueAs ( ValueObjectInterface $ date_time ) { if ( false === Util :: classEquals ( $ this , $ date_time ) ) { return false ; } return $ this -> getDate ( ) -> sameValueAs ( $ date_time -> getDate ( ) ) && $ this -> getTime ( ) -> sameValueAs ( $ date_time -> getTime ( ) ) ; }
Tells whether two DateTime are equal by comparing their values

@param  ValueObjectInterface $date_time
@return bool
Tells whether two DateTime are equal by comparing their values