[Zope] date question

Jim Sanford jsanford@atinucleus.com
Tue, 22 Feb 2000 14:32:58 -0600


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 )