[Zope] R: [Zope] Current date in DTML

Marcel Preda marcel@punto.it
Tue, 6 Jun 2000 18:40:34 +0200


> 
> Hey all,
> 
> How can I get the current date & time (preferably as a
> DateTime.DateTime object) in DTML? I cannot instantiate a DateTime
> object, because the DateTime module is not imported.
> 

<dtml-var ZopeTime fmt="%Y-%B-%d-%H:%M:%S">
or
(preferably as a DateTime.DateTime object)
<dtml-call "REQUEST.set('dateTimeObj',ZopeTime())">

PM