Next / Previous / Contents / TCC Help System / NM Tech homepage

13.5. JulianDate.__sub__(): Difference of two Julian dates

The other must be a JulianDate instance. The return value is the difference in days.

sidereal.py
# - - -   J u l i a n D a t e . _ _ s u b _ _

    def __sub__ ( self, other ):
        """Implement subtraction.

          [ other is a JulianDate instance ->
              return self.j - other.j ]
        """
        return  self.j - other.j