What\'s an easy way to convert 00:20:40.28 (HH:MM:SS) to seconds with a Bash script?
00:20:40.28
Split seconds can be cut out, it’s not essential.
I haven't tested this but, I think this is how you'd split the string. Followed by multiplying by the appropriate amounts for hours and minutes.
mytime=’00:20:40.28′ part1=${mytime%%:*}; rest=${mytime#*:} part2=${rest%%:*}; rest=${rest#*:} part3=${rest%%:*};