toDuration method

Duration toDuration()

Create a dart:core Duration object with the same time interval as this Time object, to microsecond precision (the maximum precision of the Duration object).

Implementation

Duration toDuration() =>
    Duration(microseconds: (valueSI.toDouble() * 1000000.0).round());