class_docstr: Class Duration in development.
     
class_docstr_tok: ["Class","Duration","in","development","."]
docstr: Create a new Duration object.
  
  = ERROR CONDITIONS
  - If the input frame is not in the allowed list, an error is thrown.
  
  = INPUT VARIABLES
  - frame    The frame of the duration.  Must be 'ET' or 'UTC'
  - seconds  The number of seconds in the Duration.
docstr_tok: ["Create","a","new","Duration","object",".","=","ERROR","CONDITIONS","-","If","the","input","frame","is","not","in","the","allowed","list",",","an","error","is","thrown",".","=","INPUT","VARIABLES","-","frame","The","frame","of","the","duration",".","Must","be","'ET","'","or","'UTC'","-","seconds","The","number","of","seconds","in","the","Duration","."]
code: def __init__(self, frame, seconds):
      """Create a new Duration object.
  
      = ERROR CONDITIONS
      - If the input frame is not in the allowed list, an error is thrown.
  
      = INPUT VARIABLES
      - frame    The frame of the duration.  Must be 'ET' or 'UTC'
      - seconds  The number of seconds in the Duration.
      """
      if frame not in self.allowed:
          msg = (
              "Input frame '%s' is not one of the supported frames of %s"
              % (frame, str(self.allowed))
          )
          raise ValueError(msg)
  
      self._frame = frame
      self._seconds = 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 1 to create a new Duration object from inherited base classes: object with example: obj = Duration(frame, seconds)