parameters: (log_line, year)
docstring: Returns the timestamp of the given |log_line| in the given year.
docstring_summary: Returns the timestamp of the given |log_line| in the given year.
docstring_tokens: Returns the timestamp of the given |log_line| in the given year .
function: def GetLogTimestamp(log_line, year):
    """Returns the timestamp of the given |log_line| in the given year."""
    try:
      return datetime.datetime.strptime('%s-%s' % (year, log_line[:18]),
                                        '%Y-%m-%d %H:%M:%S.%f')
    except (ValueError, IndexError):
      logging.critical('Error reading timestamp from ' + log_line)
      return None
function_tokens: def GetLogTimestamp ( log_line , year ) : try : return datetime . datetime . strptime ( '%s-%s' % ( year , log_line [ : 18 ] ) , '%Y-%m-%d %H:%M:%S.%f' ) except ( ValueError , IndexError ) : logging . critical ( 'Error reading timestamp from ' + log_line ) return None