Next Previous Up Top Contents Index

7.4 Performing operations on dates and durations

7.4.2 Comparing durations

The following operations are exported from the Date module.

=

Sealed method

<

Sealed method

duration1 = duration2 => equal?
duration1 < duration2 => less-than?

As with dates, you can perform arithmetic-like operations on durations to test for equality, or to test whether one duration is shorter than another.

System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index