sidereal.py: A Python package for astronomical calculations

10.6. MJD.__cmp__(): Comparator

The usual comparison operators are implemented on
instances of class MJD. For example, the
expression “m1 >= m2” is
true if and only if m1 is later than or
equal to m2.