parameters: (cls, time_str)
return_statement: return datetime.strptime(time_str, cls.date_format)
docstring: Convert date string to datetime object
docstring_summary: Convert date string to datetime object
docstring_tokens: Convert date string to datetime object
function: def convert_time(cls, time_str):
          """Convert date string to datetime object
          """
          if cls.date_ignore_pattern:
              time_str = re.sub(cls.date_ignore_pattern, '', time_str)
          return datetime.strptime(time_str, cls.date_format)
function_tokens: def convert_time ( cls , time_str ) : if cls . date_ignore_pattern : time_str = re . sub ( cls . date_ignore_pattern , '' , time_str ) return datetime . strptime ( time_str , cls . date_format )