You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
568 B

From: jbauer at (Jeff Bauer)
Date: Tue, 13 Apr 1999 15:30:24 GMT
Subject: rfc822 date header
Message-ID: <>
X-UID: 320
Jeremy Hylton wrote:
> If you write it, I'll lobby :-).
As a first pass, we could do lots worse than Chris Lawrence's
GMT version (untested).
def strdate(self, timeval=None):
from time import gmtime, strftime, time
if timeval is None:
timeval = time()
return "Date: %s" % strftime('%a, %d %b %Y %H:%M:%S GMT',