HH:MM:SS to Minutes

HH:MM:SS to Minutes

For
From
Status
Updating
Share
Entries

Total Min

if(test(prop("Duration"), "[a-z]") or length(replaceAll(prop("Duration"), "[^:]", "")) == 0, toNumber(""), if(length(replaceAll(prop("Duration"), "[^:]", "")) == 2, toNumber(prop("Duration")) * 60, toNumber("")) + if(length(replaceAll(prop("Duration"), "[^:]", "")) == 1, toNumber(prop("Duration")), toNumber(replace(prop("Duration"), "^[^:]*:", ""))) + round(toNumber(replace(replace(prop("Duration"), "^[^:]*:", ""), "^[^:]*:", "")) / 60 * 100) / 100)

Hours

if(length(replaceAll(prop("Duration"), "[^:]", "")) == 2, toNumber(prop("Duration")), toNumber(""))

Minutes

if(length(replaceAll(prop("Duration"), "[^:]", "")) == 1, toNumber(prop("Duration")), toNumber(replace(prop("Duration"), "^[^:]*:", "")))

Seconds

toNumber(replace(replace(prop("Duration"), "^[^:]*:", ""), "^[^:]*:", ""))

00:00 to Hrs/Mins

Entries

00:00 to Hrs/Mins

if(length(replaceAll(prop("Duration"), "[^:]", "")) > 1, toNumber(""), if(length(replaceAll(prop("Duration"), "[^:]", "")) == 0, toNumber(prop("Duration")), toNumber(prop("Duration")) + round(toNumber(replace(replace(prop("Duration"), "^[^:]*:", ""), "^[^:]*:", "")) / 60 * 100) / 100))
 
By Ben  •  Latest  •  Was this helpful? Please consider buying me a coffee. Cheers!By Ben  •  Latest  •  Was this helpful? Please consider buying me a coffee. Cheers!
By BenLatest • Was this helpful? Please consider buying me a coffee. Cheers!