isBefore method
Returns true if this
occurs before other
.
The comparison is independent of whether the time is in UTC or in other time zone.
final berlinWallFell = TZDateTime(UTC, 1989, 11, 9);
final moonLanding = TZDateTime(UTC, 1969, 7, 20);
assert(berlinWallFell.isBefore(moonLanding) == false);
Implementation
@override
bool isBefore(DateTime other) => _native.isBefore(_toNative(other));