isAtSameMomentAs method
Returns true if current instance occurs at the same moment as other
.
var now = new EtDatetime.now();
var later = now.add(const Duration(seconds: 5));
assert(!later.isAtSameMomentAs(now));
assert(now.isAtSameMomentAs(now));
Implementation
bool isAtSameMomentAs(EtDatetime other) =>
fixed == other.fixed && moment == other.moment;