public function compare(TimePoint $timepoint)
    {
        $first = $this->date;
        $second = $this->timePointToDateTime($timepoint);
        if ($first < $second) {
            return -1;
        }
        if ($first > $second) {
            return 1;
        }
        return 0;
    }
public function compare(TimePoint $timepoint)
    {
        $first = $this->date;
        $second = $this->timePointToDateTime($timepoint);
        if ($first < $second) {
            return -1;
        }
        if ($first > $second) {
            return 1;
        }
        return 0;
    }
public function compare ( TimePoint $ timepoint ) { $ first = $ this -> date ; $ second = $ this -> timePointToDateTime ( $ timepoint ) ; if ( $ first < $ second ) { return - 1 ; } if ( $ first > $ second ) { return 1 ; } return 0 ; }
Compares two points in time

@param TimePoint $timepoint The point in time to compare $this with.

@return int Returns -1, 0 or 1 if $this is less than, equal to or greater than $timepoint respectively.
Compares two points in time