operator == 方法
- Object other
override
判断 other
是否是同一时刻且在同一时区(UTC 或本地)的 DateTime。
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);