Time diff using XLSForm

Hello Community,

Is there any way possible to subtract a time field from another time field?
For example something like,

*type name calculation *

time TIME01
time TIME02
calculate TIME_DIFF ${TIME02} - ${TIME01}

I tried this but it doesn't seem working and I am not sure if it is
possible either.

Any help would be appreciated.

Best
Joseph

Joseph,

I think date subtractions work, but time subtractions don't.
https://groups.google.com/d/msg/opendatakit/7HRP7V_yJxU/zHEYmjpEagwJ

Best bet would be to have the user choose hours from a drop down list
(or have them enter it) and do the subtraction manually.

Yaw

ยทยทยท -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Tue, Oct 7, 2014 at 10:00 PM, Joseph gnanoudaygj@gmail.com wrote:

Hello Community,

Is there any way possible to subtract a time field from another time field?
For example something like,

type name calculation

time TIME01
time TIME02
calculate TIME_DIFF ${TIME02} - ${TIME01}

I tried this but it doesn't seem working and I am not sure if it is possible
either.

Any help would be appreciated.

Best
Joseph

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.