If I am looking to store the current day in a variable, how do I get something like this to work? <dtml-call "REQUEST.set('varDate', ZopeTime fmt=day)"> Thanks
Try: <dtml-call "REQUEST.set('varDate',ZopeTime())"> <dtml-var varDate fmt=day> Adam Gotheridge wrote:
If I am looking to store the current day in a variable, how do I get something like this to work?
<dtml-call "REQUEST.set('varDate', ZopeTime fmt=day)">
Thanks
_______________________________________________ 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 )
-- Chris McDonough Digital Creations, Inc. Zope - http://www.zope.org
----- Original Message ----- From: "Adam Gotheridge" <adam@foxvalley.net> To: "zope" <zope@zope.org> Sent: Monday, December 27, 1999 10:54 PM Subject: [Zope] dtml-call
If I am looking to store the current day in a variable, how do I get something like this to work?
<dtml-call "REQUEST.set('varDate', ZopeTime fmt=day)">
How about: <dtml-call "REQUEST.set('varDate', ZopeTime().Day())"> ZopeTime() returns the current time as a DateTime object. The Day() method returns the name of the day of the week. The DateTime methods are in Appendix A of the DTML Guide. Kevin
Thanks all, really apreciate it.
How about:
<dtml-call "REQUEST.set('varDate', ZopeTime().Day())">
ZopeTime() returns the current time as a DateTime object. The Day() method returns the name of the day of the week. The DateTime methods are in Appendix A of the DTML Guide.
Kevin
ZopeTime() returns the current time as a DateTime object. The Day() method returns the name of the day of the week. The DateTime methods are in Appendix A of the DTML Guide.
I want the name of the day of the week is Swedish. Will Zope support this (and other locale strings too i guess) in the future? Or is it possible today, have I missed something? /Magnus
participants (4)
-
Adam Gotheridge -
Chris McDonough -
Kevin Dangoor -
Magnus Heino