operator == 方法
- Object other
override
如果 other
是与同一时刻和同一时区(UTC 或本地)的 DateTime,则返回 true。
final dDayUtc = DateTime.utc(1944, 6, 6);
final dDayLocal = dDayUtc.toLocal();
// These two dates are at the same moment, but are in different zones.
assert(dDayUtc != dDayLocal);
print(dDayUtc != dDayLocal); // true
有关独立于其时区的比较,请参阅 isAtSameMomentAs。
实现
external bool operator ==(Object other);