My Zope server is on the west coast but I'm on the east coast. I'd like to be able to add 3 hours to date strings ala: <dtml-var time + 3hours fmt="pCommonZ"> Any quick solutions? Thanks in advance. Tom Scheidt tom@falsemirror.com www.falsemirror.com
see DateTime API Andreas ----- Original Message ----- From: "Tom Scheidt" <tom@falsemirror.com> To: "Zope List" <zope@zope.org> Sent: Monday, February 25, 2002 19:15 Subject: [Zope] Time Conversion
My Zope server is on the west coast but I'm on the east coast. I'd like to be able to add 3 hours to date strings ala:
<dtml-var time + 3hours fmt="pCommonZ">
Any quick solutions? Thanks in advance.
Tom Scheidt tom@falsemirror.com www.falsemirror.com
_______________________________________________ Zope maillist - Zope@zope.org 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 )
it is not necessary to add the 3 hours. Zope/python has a built in way to handle time zones conversions. In your case...toZone('EST') Check out the Zope Book Appendix for more. -Trevor
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Tom Scheidt Sent: Monday, February 25, 2002 7:16 PM To: Zope List Subject: [Zope] Time Conversion
My Zope server is on the west coast but I'm on the east coast. I'd like to be able to add 3 hours to date strings ala:
<dtml-var time + 3hours fmt="pCommonZ">
Any quick solutions? Thanks in advance.
Tom Scheidt tom@falsemirror.com www.falsemirror.com
_______________________________________________ Zope maillist - Zope@zope.org 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 )
participants (3)
-
Andreas Jung -
Tom Scheidt -
Trevor Toenjes