[Zope] date manipulations

Daryl Tester dt@picknowl.com.au
Sun, 19 Mar 2000 15:14:11 +1030


Graham Chiu wrote:

> I want to add an hour to a date...
> 
> this doesn't work
> 
> Closedate is: <dtml-var "closedate.aCommon()"><br>
> <dtml-call "REQUEST.set('newdate',closedate+1/24)">
> Closedate + 1 hour is: <dtml-var "newdate.aCommon()"><br>

I think integer division was covered last week on this
mailing list.  Change 1/24 to 1.0/24 (the upshot is 1/24 is
evaluating to 0).


Regards,
  Daryl Tester