parameters: (datetime_str)
return_statement: return datetime.datetime.fromtimestamp(time.mktime(date_tuple))
docstring: Return datetime object from string, formatted for last-modified
docstring_summary: Return datetime object from string, formatted for last-modified
docstring_tokens: Return datetime object from string formatted for last - modified
function: def str2datetime(datetime_str):
      """Return datetime object from string, formatted for last-modified"""
      date_tuple = email.utils.parsedate(datetime_str)
      return datetime.datetime.fromtimestamp(time.mktime(date_tuple))
function_tokens: def str2datetime ( datetime_str ) : date_tuple = email . utils . parsedate ( datetime_str ) return datetime . datetime . fromtimestamp ( time . mktime ( date_tuple ) )