Format a Python datetime as a string according to
RFC 2822 section 3.3 respecting timezone. Adapted from Python's
email.utils.formatdate. As a handy companion,
dateutil.parser.parse works quite nicely for parsing them.
def formatrfc2822datetime(value=None, usegmt=False):
"""Returns a date string as specified by RFC 2822 section 3.3., e.g.:
(
Read more... )