toDateTimeUtc method

DateTime toDateTimeUtc()

Converts to a DateTime object, in UTC.

Implementation

DateTime toDateTimeUtc() =>
    DateTime.fromMillisecondsSinceEpoch(secondsSinceEpoch * 1000,
        isUtc: true);