compareTo method

  1. @override
int compareTo(
  1. JDate other
)
override

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

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

Implementation

@override
int compareTo(JDate other) => toDateTime().compareTo(other.toDateTime());