[Zope] date question

Thomas Weiner weiner@tu-harburg.de
Tue, 22 Feb 2000 19:11:19 +0100


Rico Friedrich schrieb:
> 
> 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.

<dtml-let zeit="_.DateTime()">
<dtml-if "zeit.dayOfYear() >70" >
...
</dtml-if>
</dtml-let>

should work.

hth,
Thomas
-- 
fon: ++49 (0)40 42878 3781
fax: ++49 (0)40 42878 2728