[Zope] date question

Pavlos Christoforou pavlos@gaaros.com
Tue, 22 Feb 2000 12:45:15 -0500 (EST)


Hi Rico -
dayOfYear is a method of the class DateTime so you need to call it as:
<dtml-if "_.DateTime().dayOfYear()>70">

Pavlos

On Tue, 22 Feb 2000, Rico Friedrich wrote:

> hi there,
> 
> how to deal with the dayOfYear in dtml-if ?
> 
> 
> <dtml-if "_.DateTime() > 70">
> <dtml-var "_.DateTime()" fmt=dayOfYear> > 70
> </dtml-if>
> 
> i would like to change the dtml-if so that it would be
> able to distinguish the two dayOfYear-integer correct.
> the source below isnīt correct but 
> <dtml-if "_.DateTime() fmt=dayOfYear > 70"> doesnīt work.
> 
> 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 )
>