isUtc property

  1. @override
bool get isUtc
override

True if this DateTime is set to UTC time.

final dDay = DateTime.utc(1944, 6, 6);
print(dDay.isUtc); // true

final local = DateTime(1944, 6, 6);
print(local.isUtc); // false

Implementation

@override
bool get isUtc => offset == 0;