You can use decimal-time() function, see ODK XForms Specification.
Here is an example, found with the famous search function of this forum: Timesheet system with clock in and clock out using time from the internet
1 Like