compareTo method
Compares this Instant to other
, returning zero if the values are equal.
Returns a negative value if this is before other
. It returns 0
if this is the same as other
, and returns a positive value otherwise
(when this is after other
).
Implementation
int compareTo(Instant other) => sinceEpoch.compareTo(other.sinceEpoch);