[Zope] dtml-call
Kevin Dangoor
kid@kendermedia.com
Mon, 27 Dec 1999 23:10:59 -0500
----- 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