wasm-demo/demo/ermis-f/python_m/cur/0320

25 lines
568 B
Plaintext
Raw Permalink Normal View History

From: jbauer at rubic.com (Jeff Bauer)
Date: Tue, 13 Apr 1999 15:30:24 GMT
Subject: rfc822 date header
Message-ID: <37136310.62A6BE1A@rubic.com>
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',
gmtime(timeval))
-Jeff