class_docstr: Class Duration in development.
     
class_docstr_tok: ["Class","Duration","in","development","."]
docstr: Compare two Durations.
  
  = ERROR CONDITIONS
  - If the input rhs is not in the same frame, an error is thrown.
  
  = INPUT VARIABLES
  - rhs    The Duration to compare against.
  
  = RETURN VALUE
  - Returns -1 if self < rhs, 0 if self == rhs, +1 if self > rhs.
docstr_tok: ["Compare","two","Durations",".","=","ERROR","CONDITIONS","-","If","the","input","rhs","is","not","in","the","same","frame",",","an","error","is","thrown",".","=","INPUT","VARIABLES","-","rhs","The","Duration","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 Durations.
  
      = ERROR CONDITIONS
      - If the input rhs is not in the same frame, an error is thrown.
  
      = INPUT VARIABLES
      - rhs    The Duration to compare against.
  
      = RETURN VALUE
      - Returns -1 if self < rhs, 0 if self == rhs, +1 if self > rhs.
      """
      self.checkSameFrame(rhs, "compare")
      return cmp(self._seconds, rhs._seconds)
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/testing/jpl_units/Duration.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
label_desc: Use image node_id 7 for calling the Duration obj's underlying member method code with example usage: obj.__cmp__(rhs) and returns: cmp