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


_______________________________________________
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