public function compareTime($other) { if (!$other instanceof Horde_Date) { $other = new Horde_Date($other); } if ($this->_hour != $other->hour) { return $this->_hour - $other->hour; } if ($this->_min != $other->min) { return $this->_min - $other->min; } return $this->_sec - $other->sec; }