5 Nov
2000
5 Nov
'00
7:06 a.m.
On Fri, 3 Nov 2000, Steve Drees wrote:
Have a pythonmethod
ID expireIn1Week Parameter List self _____________BODY__________ t = self.ZopeTime() + 7.0 # 1 week in the future t = t.toZone('GMT')
return t.strftime("%A, %d-%b-%Y %H:%M:%S GMT")
It (strftime) is correct as long as you don't use locales. (There's a bug related to this in ZServer/medusa/http_date.py.) ololo@zeus.polsl.gliwice.pl /--------------------------------------\ | `long long long' is too long for GCC | \--------------------------------------/