Convert the datetime instance datetime into a string formatted to be compliant with the HTTP RFC.
Note
This uses wsgiref.handlers.format_date_time().
Parse the string httpdate as a date according to RFC 2616 and return the resulting datetime instance.
Note
This uses email.utils.parsedate().