any chance of a code snipet as to how to remove the trailing zero?
a=$(( ( a * 60) + ${x#0} ))
Or just a better way of doing what I'm doing =)
IN=00:08:19.12 IFS=: read h m s <<EOF ${IN%%.*} EOF a=$(( ${h#0} * 3600 + ${m#0} * 60 + ${s#0} ))
date -u -d 1970.01.01-${IN%%.*} +%s