Add a duration to an Epoch. = INPUT VARIABLES - rhs The Epoch to subtract. = RETURN VALUE - Returns the difference of ourselves and the input Epoch.
(self, rhs)
| 124 | __ge__ = functools.partialmethod(_cmp, operator.ge) |
| 125 | |
| 126 | def __add__(self, rhs): |
| 127 | """ |
| 128 | Add a duration to an Epoch. |
| 129 | |
| 130 | = INPUT VARIABLES |
| 131 | - rhs The Epoch to subtract. |
| 132 | |
| 133 | = RETURN VALUE |
| 134 | - Returns the difference of ourselves and the input Epoch. |
| 135 | """ |
| 136 | t = self |
| 137 | if self._frame != rhs.frame(): |
| 138 | t = self.convert(rhs._frame) |
| 139 | |
| 140 | sec = t._seconds + rhs.seconds() |
| 141 | |
| 142 | return Epoch(t._frame, sec, t._jd) |
| 143 | |
| 144 | def __sub__(self, rhs): |
| 145 | """ |