isAtSameMomentAs method
Returns true if this
occurs at the same moment as 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.isAtSameMomentAs(moonLanding) == false);
Implementation
@override
bool isAtSameMomentAs(DateTime other) =>
_native.isAtSameMomentAs(_toNative(other));