[Zope] How to subtract one date from another?

Nick Garcia ngarcia@codeit.com
Wed, 26 Apr 2000 09:47:53 -0700


jens ebaer wrote:
> 
> Hi all,
> 
> I have to to this: date - date = 20 days. (2000-5-5 - 2000-5-2 = 3 days)
> 
> I checked Zope Quick Reference but couldnīt find a function which provide
> this.

<dtml-var "_.DateTime('2000-5-5') - _.DateTime('2000-5-2')">

Returns the float 3.0.
-- 
Nick Garcia | ngarcia@codeit.com
CodeIt Computing | http://codeit.com