compareTo method

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

Compares this TZDateTime object to other, returning zero if the values occur at the same moment.

This function returns a negative integer if this TZDateTime is smaller (earlier) than other, or a positive integer if it is greater (later).

Implementation

@override
int compareTo(DateTime other) => _native.compareTo(_toNative(other));