after playing around I figured out, that there is no basic conversion option to convert duration time from format HH:mm into decimal format like 4,75 hours.
It’s maybe helpful for some people, how it could be solved (I guess it’s only one way from many)
My solution and steps to test it by yourself:
create a basic trigger module with one value for duration time, e.g. 04:45 (HH:mm)
create a module set variable and use the follwoing function:
{{sum(parseNumber(substring(1.time; 0; 3)); parseNumber(substring(1.time; 3; 5)) / 60)}}
explanation:
Parsing of first two positions (0;3) → result: 04
Parse the value from string to number
Parsing of last two positions (3;5) → result: 45
parse the value from string to number
Divide Minutes by 60 → 45/60 → result: 0,75
Sum both values to one value
Of course it can be extend by seconds as well if necessary.
That’s it.
I’m also interested in other solutions, if someone has a different approach with functions.
Have fun.
Best regards
PS: I also tried it with a combination of get and split function.
or something like that. I haven’t tested it. But basically, extract the hour, add a period, extract the minutes, divide by 60 then multiply by 100 nd round it off to make sure you don’t get 1.66.67 for 01:40.