MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / secondsPast

Method secondsPast

lib/matplotlib/testing/jpl_units/Epoch.py:102–108  ·  view source on GitHub ↗
(self, frame, jd)

Source from the content-addressed store, hash-verified

100 return t._jd + t._seconds / 86400.0
101
102 def secondsPast(self, frame, jd):
103 t = self
104 if frame != self._frame:
105 t = self.convert(frame)
106
107 delta = t._jd - jd
108 return t._seconds + delta * 86400
109
110 def _cmp(self, op, rhs):
111 """Compare Epochs *self* and *rhs* using operator *op*."""

Callers

nothing calls this directly

Calls 1

convertMethod · 0.95

Tested by

no test coverage detected