toDuration method

Duration toDuration()

Implementation

Duration toDuration() =>
    Duration(microseconds: (to(second) * 1000000).truncate());