A duration is a scalar magnitude of time measured in a given chronon (e.g.
days(3)), with no reference to a point in time. Comparing two durations is
therefore a plain magnitude comparison, once both operands have been
expressed in a common chronon:
a == biff the two magnitudes are equal in their common chronona < b,a <= b,a > b,a >= bcompare the magnitudes directly
Unlike mt_linear comparison there is no interval/span to consider, so this
is a total order. When both operands already share a chronon the magnitudes
are compared as-is; otherwise both are scaled to their finest common chronon
(the same scaling used when combining durations arithmetically, see
duration_combine()).
Usage
# S4 method for class 'mt_duration'
e1 == e2
# S4 method for class 'mt_duration'
e1 != e2
# S4 method for class 'mt_duration'
e1 < e2
# S4 method for class 'mt_duration'
e1 <= e2
# S4 method for class 'mt_duration'
e1 > e2
# S4 method for class 'mt_duration'
e1 >= e2