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.)


[EMAIL PROTECTED]

/--------------------------------------\
| `long long long' is too long for GCC |
\--------------------------------------/


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to