difference method

Duration difference(
  1. XPathDateTime other
)

Calculates the difference between this and other date-time.

Implementation

Duration difference(XPathDateTime other) =>
    toDateTime().difference(other.toDateTime());