From: Jack.Jansen at oratrix.com (Jack Jansen)
Date: Tue, 13 Apr 1999 12:13:16 +0200
Subject: rfc822 date header
References: <3712D863.2A8148BC@rubic.com> <3712F4C1.52327AF4@lemburg.com>
Message-ID: <371318BC.E131EDF0@oratrix.com>
X-UID: 1709                                                  

"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




