compareTo method

int compareTo(
  1. HijriDateTime other
)

Compares this HijriDateTime object to other, returning zero if the values are equal.

Returns a negative value if this HijriDateTime isBefore other. It returns 0 if it isAtSameMomentAs other, and returns a positive value otherwise (when this isAfter other).

Implementation

int compareTo(HijriDateTime other) {
  return _date.compareTo(other._date);
}