Compare Epochs *self* and *rhs* using operator *op*.
(self, op, rhs)
| 108 | return t._seconds + delta * 86400 |
| 109 | |
| 110 | def _cmp(self, op, rhs): |
| 111 | """Compare Epochs *self* and *rhs* using operator *op*.""" |
| 112 | t = self |
| 113 | if self._frame != rhs._frame: |
| 114 | t = self.convert(rhs._frame) |
| 115 | if t._jd != rhs._jd: |
| 116 | return op(t._jd, rhs._jd) |
| 117 | return op(t._seconds, rhs._seconds) |
| 118 | |
| 119 | __eq__ = functools.partialmethod(_cmp, operator.eq) |
| 120 | __ne__ = functools.partialmethod(_cmp, operator.ne) |