commit | aa79f4d492abd5b979e740520e95fcb717793061 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Fri Nov 09 16:59:56 2001 +0000 |
committer | Barry Warsaw <barry@python.org> | Fri Nov 09 16:59:56 2001 +0000 |
tree | 7ef8f810c4b7428fa05d45a061ca9e645a12e661 | |
parent | 3e77423a641e1331f8e0724328c3385a6a455ce1 [diff] |
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.