[Zope] R: [Zope] Substract Date

Marcel Preda marcel@punto.it
Thu, 6 Jul 2000 10:28:15 +0200


----- Original Message ----- 
From: F.Richter <fr@swol.de>
To: <zope@zope.org>
Sent: Thursday, July 06, 2000 7:58 AM
Subject: [Zope] Substract Date


> Hi,
> 
> 
> I'm a newbi in Zope had a problem. I want substract a date from an other
> and  set the result of this to "DAYOFYEAR".
> 
> For instance:
> '2000-05-10' - '2000-05-08' = 2 
>     ^^^            ^^^        ^
>    Date1           Date2      result DAYOFYEAR
> 
> Have everyone a solution for this problem??
> 
> 


<dtml-let daysNumber="ZopeTime('2000-05-10') - ZopeTime('2000-05-08' )">
<dtml-var daysNumber>
</dtml-let>

PM

_______________________________
"Will I be using Python today?"
 and if the answer is "yes"
 I know that it's going to be a good day.