docstr: Compare Epochs *self* and *rhs* using operator *op*.
docstr_tok: ["Compare","Epochs","*","self","*","and","*","rhs","*","using","operator","*","op","*","."]
code: def _cmp(self, op, rhs):
      """Compare Epochs *self* and *rhs* using operator *op*."""
      t = self
      if self._frame != rhs._frame:
          t = self.convert(rhs._frame)
      if t._jd != rhs._jd:
          return op(t._jd, rhs._jd)
      return op(t._seconds, rhs._seconds)
  
file_path: matplotlib/lib/matplotlib/testing/jpl_units/Epoch.py
imports: import functools
  import operator
  import math
  import datetime
  from matplotlib import _api
  from matplotlib.dates import date2num
label_desc: Use image node_id 6 for calling the Epoch obj's underlying member method code with example usage: obj._cmp(op, rhs) and returns: op, op