]> granicus.if.org Git - python/commit
formatdate(): An implementation to replace the one borrowed from
authorBarry Warsaw <barry@python.org>
Fri, 9 Nov 2001 16:59:56 +0000 (16:59 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 9 Nov 2001 16:59:56 +0000 (16:59 +0000)
commitaa79f4d492abd5b979e740520e95fcb717793061
tree7ef8f810c4b7428fa05d45a061ca9e645a12e661
parent3e77423a641e1331f8e0724328c3385a6a455ce1
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.
Lib/email/Utils.py