6 Jul
2000
6 Jul
'00
5:20 p.m.
Chris Withers wrote:
Peter Arvidsson wrote:
I am about to do <dtml-call "REQUEST.set('a', (a - b) * 15">
I presume that should be: <dtml-call "REQUEST.set('a', (a - b) * 15)"> ? ;-)
Anyway, two options:
1. On your form, change your input to be: <input type="TEXT" name="a:int">
2. Change your call to be: <dtml-call "REQUEST.set('a', (_.int(a) - _.int(b)) * 15)">
cheers,
Chris
At the same level, what is the easiest way to calculate the difference (in minutes) between two given times in a form (HHMM)? Is there any easy way to do this or do I have to do something complicate?