Help with converting time

Hi
I have this output in a repeating table to calculate time lapsed between 4 different fields
{{(TimeIn.secondsUntil(TimeOutLunch) + TimeInLunch.secondsUntil(TimeOut))}}
is there a way to output this in hours minutes and seconds - HH:mm:ss
I have tried using timeUntil rather than seconds until but it does not work.

You can convert seconds to hours : minutes :seconds and if my math skills are good enough you should get these using:

{{((TimeIn.secondsUntil(TimeOutLunch) / 3600) % 24).floor()}} : {{((TimeIn.secondsUntil(TimeOutLunch) / 60) % 60).floor()}} : {{(TimeIn.secondsUntil(TimeOutLunch) %60)}}

So this code above will show you the TimeIn.secondsUntil(TimeOutLunch) in hh:mm:ss

As always Teodor you are a superstar, exactly what I needed!!

Great, my high school maths teacher should be proud of me :smiley:

The maths was not the problem it was the syntax that I didn’t know.
Forgive my ignorance, is this language javascript?

Yes, it’s javascript expressions.