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,
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 )
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
This should work: <dtml-if "_.DateTime().dayOfYear() > 70"> <dtml-var "_.DateTime()" fmt=dayOfYear> > 70 </dtml-if> __________________________________________________________________ Jim Sanford . Database Engineer / \ / Accelerated Technology, Inc. / / 720 Oak Circle Drive East / / \ Mobile, AL 36609 / / \ Voice: 334-661-5770 fax: 334-661-5788 / \ E-Mail: jsanford@atinucleus.com Web: http://www.atinucleus.com Source Code, No Royalties, Any CPU...It just make sense ! __________________________________________________________________ ----- Original Message ----- From: Rico Friedrich <Rico.Friedrich@informatik.tu-chemnitz.de> To: <zope@zope.org> Sent: Tuesday, February 22, 2000 11:32 AM Subject: [Zope] date question 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 )
participants (4)
-
Jim Sanford -
Pavlos Christoforou -
Rico Friedrich -
Thomas Weiner