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> But this does Closedate is: <dtml-var "closedate.aCommon()"><br> <dtml-call "REQUEST.set('newdate',closedate+.04167)"> Closedate + 1 hour is: <dtml-var "newdate.aCommon()"><br> Win32 2.1.3 ------- Regards, Graham Chiu gchiu<at>compkarori.co.nz http://www.compkarori.com/dynamo - The Homebuilt Dynamo http://www.compkarori.com/dbase - The dBase bulletin
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
participants (2)
-
Daryl Tester -
Graham Chiu