Name

parsedate

Synopsis

parsedate(s)

Parses string s as per the rules in RFC 2822 and returns a tuple t with 9 items, as used in module time covered in Chapter 12 (the items t [-3:] are not meaningful). parsedate also attempts to parse erroneous variations on RFC 2822 that widespread mailers use. When parsedate cannot parse s, parsedate returns None.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.