public function compare(AnDate $date)
    {
        $thisTimestamp = $this->getTimestamp();
        $dateTimestamp = $date->getTimestamp();

        return $thisTimestamp - $dateTimestamp;
    }
public function compare(AnDate $date)
    {
        $thisTimestamp = $this->getTimestamp();
        $dateTimestamp = $date->getTimestamp();

        return $thisTimestamp - $dateTimestamp;
    }
public function compare ( AnDate $ date ) { $ thisTimestamp = $ this -> getTimestamp ( ) ; $ dateTimestamp = $ date -> getTimestamp ( ) ; return $ thisTimestamp - $ dateTimestamp ; }
Compare the reciever with another date. If receiver is the same date as the
date it returns 0 if receiver is before the dat it returns 1 and if it's after the date
it returns -1.

@param AnDate $date

@return int
Compare the reciever with another date . If receiver is the same date as the date it returns 0 if receiver is before the dat it returns 1 and if it s after the date it returns - 1 .