formatdate(): An implementation to replace the one borrowed from rfc822.py.  The old rfc822.formatdate() produced date strings using obsolete syntax.  The new version produces the preferred RFC 2822 dates.
formatdate(): An implementation to replace the one borrowed from
rfc822.py.  The old rfc822.formatdate() produced date strings using
obsolete syntax.  The new version produces the preferred RFC 2822
dates.

Also, an optional argument `localtime' is added, which if true,
produces a date relative to the local timezone, with daylight savings
time properly taken into account.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator