docstr: Compare two Epoch's.
  
  = INPUT VARIABLES
  - rhs    The Epoch to compare against.
  
  = RETURN VALUE
  - Returns -1 if self < rhs, 0 if self == rhs, +1 if self > rhs.
docstr_tok: ["Compare","two","Epoch","'s",".","=","INPUT","VARIABLES","-","rhs","The","Epoch","to","compare","against",".","=","RETURN","VALUE","-","Returns","-1","if","self","<","rhs",",","0","if","self","==","rhs",",","+1","if","self",">","rhs","."]
code: def __cmp__(self, rhs):
      """Compare two Epoch's.
  
      = INPUT VARIABLES
      - rhs    The Epoch to compare against.
  
      = RETURN VALUE
      - Returns -1 if self < rhs, 0 if self == rhs, +1 if self > rhs.
      """
      t = self
      if self._frame != rhs._frame:
          t = self.convert(rhs._frame)
  
      if t._jd != rhs._jd:
          return cmp(t._jd, rhs._jd)
  
      return cmp(t._seconds, rhs._seconds)
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/testing/jpl_units/Epoch.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import math
  import datetime
  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__(rhs) and returns: cmp, cmp