toDateTime method

DateTime toDateTime()
inherited

Converts an instance to DateTime.

The result is in UTC time zone and has microsecond precision, as DateTime does not support nanosecond precision.

Implementation

DateTime toDateTime() => DateTime.fromMicrosecondsSinceEpoch(
    seconds.toInt() * Duration.microsecondsPerSecond + nanos ~/ 1000,
    isUtc: true);