code: def get_endtime(jid):
      '''
      Retrieve the stored endtime for a given job
  
      Returns False if no endtime is present
      '''
      jid_dir = salt.utils.jid.jid_dir(jid, _job_dir(), __opts__['hash_type'])
      etpath = os.path.join(jid_dir, ENDTIME)
      if not os.path.exists(etpath):
          return False
      with salt.utils.files.fopen(etpath, 'r') as etfile:
          endtime = salt.utils.stringutils.to_unicode(etfile.read()).strip('\n')
      return endtimf get_endtime(jid):
      '''
      Retrieve the stored endtime for a given job
  
      Returns False if no endtime is present
      '''
      jid_dir = salt.utils.jid.jid_dir(jid, _job_dir(), __opts__['hash_type'])
      etpath = os.path.join(jid_dir, ENDTIME)
      if not os.path.exists(etpath):
          return False
      with salt.utils.files.fopen(etpath, 'r') as etfile:
          endtime = salt.utils.stringutils.to_unicode(etfile.read()).strip('\n')
      return endtime
docs: Retrieve the stored endtime for a given job
  
      Returns False if no endtime is present