src/Peach/DT/Timestamp.php
protected function compareFields(Time $time)
    {
        $c = parent::compareFields($time);
        if (!isset($c) || $c != 0) {
            return $c;
        }
        $className = __CLASS__;
        if ($time instanceof $className) {
            return $this->second - $time->second;
        } else {
            $s = $time->get("second");
            return ($s !== $this->second) ? $this->second - $s : 0;
        }
    }
protected function compareFields(Time $time)
    {
        $c = parent::compareFields($time);
        if (!isset($c) || $c != 0) {
            return $c;
        }
        $className = __CLASS__;
        if ($time instanceof $className) {
            return $this->second - $time->second;
        } else {
            $s = $time->get("second");
            return ($s !== $this->second) ? $this->second - $s : 0;
        }
    }
protected function compareFields ( Time $ time ) { $ c = parent :: compareFields ( $ time ) ; if ( ! isset ( $ c ) || $ c != 0 ) { return $ c ; } $ className = __CLASS__ ; if ( $ time instanceof $ className ) { return $ this -> second - $ time -> second ; } else { $ s = $ time -> get ( "second" ) ; return ( $ s !== $ this -> second ) ? $ this -> second - $ s : 0 ; } }
この時間と指定された時間を比較します.

@param  Time $time 比較対象の時間
@return int        この時間のほうが過去の場合は負の値, 未来の場合は正の値, それ以外は 0
@ignore
この時間と指定された時間を比較します .