differenceInDuration property

Duration differenceInDuration

Returns the difference of both date times as a Duration.

The dateTime will always be used as base, when subtracting other from dateTime.

Implementation

Duration get differenceInDuration =>
    relativeDateTime.dateTime.difference(relativeDateTime.other);