[Zope] Dates

Luciano Ramalho luciano@hiper.com.br
Mon, 12 Feb 2001 14:32:12 -0300


Example 1:

Number of days between two dates:
<dtml-var expr="_.DateTime('2001-02-01')-_.DateTime('2001-01-30')">

Example 2:

Looping from certain starting date to 9 days after that:
<dtml-in "_.range(10)">
<dtml-var expr="_.DateTime('2001-02-01')+_['sequence-item']"><br>
</dtml-in>



Alejandro Pancani wrote:
> 
> I'm wondering if anybody know how  to calculate the days betwen two dates or
> any way to loop betwen two dates
> 
> _______________________________________________
> 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 )