Compares this DateTime object to other
, returning zero if the values are equal.
Returns a negative value if this DateTime isBefore other
. It returns 0 if it isAtSameMomentAs other
, and returns a positive value otherwise (when this isAfter other
).
int compareTo(DateTime other) => _value.compareTo(other._value);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-core/DateTime/compareTo.html