toDateTime method

DateTime toDateTime()

Converts Timetoken to a DateTime.

Beware, as it drops the granularity to microseconds.

Implementation

DateTime toDateTime() {
  return DateTime.fromMicrosecondsSinceEpoch(
      (value / BigInt.from(10)).round());
}