parameters: (time='')
return_statement: return (time_stamp + timedelta(seconds=utc_offset)).strftime('%H:%M:%S')
docstring: Normally used to take a starttime and convert it for use in adding
      new recordings. get_utc_offset() should be called before this is, but
      that only needs to be done once.
  
      Input:  Full UTC timestamp, e.g. 2014-08-12T22:00:00 (with or without
              the trailing 'Z'.)
  
      Output: Time portion of the above in local time. Or -1 for invalid
              timestamp input.
docstring_summary: Normally used to take a starttime and convert it for use in adding
      new recordings. get_utc_offset() should be called before this is, but
      that only needs to be done once.
docstring_tokens: Normally used to take a starttime and convert it for use in adding new recordings . get_utc_offset () should be called before this is but that only needs to be done once .
function: def create_find_time(time=''):
      """
      Normally used to take a starttime and convert it for use in adding
      new recordings. get_utc_offset() should be called before this is, but
      that only needs to be done once.
  
      Input:  Full UTC timestamp, e.g. 2014-08-12T22:00:00 (with or without
              the trailing 'Z'.)
  
      Output: Time portion of the above in local time. Or -1 for invalid
              timestamp input.
      """
  
      time_format = '%Y-%m-%dT%H:%M:%S'
  
      if not time:
          LOG.error('create_find_time() called without any time')
          return None
  
      try:
          int(UTC_OFFSET)
          utc_offset = UTC_OFFSET
      except (NameError, TypeError, ValueError):
          LOG.warning('Run get_utc_offset() first. Using UTC offset of 0.')
          utc_offset = 0
  
      time = time.replace('Z', '')
  
      try:
          time_stamp = datetime.strptime(time, time_format)
      except (NameError, TypeError, ValueError):
          LOG.error('Invalid timestamp: %s, required: %s.', time, time_format)
          return -1
  
      return (time_stamp + timedelta(seconds=utc_offset)).strftime('%H:%M:%S')
function_tokens: def create_find_time ( time = '' ) : time_format = '%Y-%m-%dT%H:%M:%S' if not time : LOG . error ( 'create_find_time() called without any time' ) return None try : int ( UTC_OFFSET ) utc_offset = UTC_OFFSET except ( NameError , TypeError , ValueError ) : LOG . warning ( 'Run get_utc_offset() first. Using UTC offset of 0.' ) utc_offset = 0 time = time . replace ( 'Z' , '' ) try : time_stamp = datetime . strptime ( time , time_format ) except ( NameError , TypeError , ValueError ) : LOG . error ( 'Invalid timestamp: %s, required: %s.' , time , time_format ) return - 1 return ( time_stamp + timedelta ( seconds = utc_offset ) ) . strftime ( '%H:%M:%S' )