[Zope] Re: Zope digest, Vol 1 #1059 - 51 msgs
Tres Seaver
tseaver@digicool.com
Thu, 16 Nov 2000 20:18:12 -0500
James Sintz <jsintz@ohiohistory.org> wrote:
> To: "'Andy McKay'" <andym@ActiveState.com>, zope@zope.org
> Subject: RE: [Zope] dtml-if and dtml-with problems
> Date: Thu, 16 Nov 2000 12:54:21 -0500
>
> Thanks!!!!
>
> that did the trick...
>
> <dtml-if "_.str(nl_goLiveDate) == ZopeTime().strftime('%Y/%m/%d')">
>
> also found out that
>
> <dtml-if "nl_goLiveDate.strftime('%Y/%m/%d') ==
> ZopeTime().strftime('%Y/%m/%d')">
>
> works as well.
This would do a match on the dates themselves:
<dtml-if expr="nl_goLiveDate.earliestTime() ==
ZopeTime().earliestTime()">
See $SOFTWARE_HOME/lib/python/DateTime/DateTime.py for more
fun with dates.
Tres.
--
===============================================================
Tres Seaver tseaver@digicool.com
Digital Creations "Zope Dealers" http://www.zope.org