[Zope] Subtracting PreciseTime

Paul Zwarts paul.zwarts@oratrix.com
Wed, 07 Mar 2001 17:18:43 +0100


Hi,

Can someone help me with this construction?

I have two dates that I want to find the difference in minutes or hours
(preferably minutes)

zdate          2001/03/07 17:08:00 GMT+1
start_date   2001/03/07 16:41:14 GMT+1

What I try:

<dtml-var expr="_.DateTime(zdate-start_date).PreciseTime()">

which returns:  01:00:00.023

What is wrong here?

I've tred breaking both dates down to Times first and then subtracting,
but it doesnt work either..... HELP!?

Thanks,
PazLosingHairAtThisPont