rfc822 date header
Jack Jansen
Jack.Jansen at oratrix.com
Tue Apr 13 06:13:16 EDT 1999
"M.-A. Lemburg" wrote:
>
> Jeff Bauer wrote:
> >
> > Is there a reasonably bulletproof way to generate an
> > rfc822-compliant date header using the time module?
> >
> > The reason I ask is I recall a number of subtle
> > errors in this regard, reported by Chris Lawrence,
> > among others.
>
> According to the RFC, time.ctime() should do the trick...
> but it's probably locale aware which the RFC doesn't account
> for.
Which RFC are you referring to? time.ctime() output is definitely *not*
compatible with RFC822. But it should be easy enough to come up with a
time.strftime() format that does the right thing...
--
Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen at oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm
More information about the Python-list
mailing list