I have a list of strings(duration's) in the format
"2:05",
"2:50"
"1:50"
I need to add the lists and get the result as 6:45. is there any function that can help to add the duration ?
Discussion posts and replies are publicly visible
Agree with Mike on intervalds():
a!localVariables( local!list: {"2:05","2:50","1:50"}, local!intervals: a!forEach( items: local!list, expression: intervalds(split(fv!item,":")[1],split(fv!item,":")[2],0) ), local!total: tointervalds( sum( local!intervals ) ), concat( hour(local!total), ":", minute(local!total) ) )