summaryrefslogtreecommitdiff
path: root/bin/timesum
blob: b6a03d1a1029d3943be73041b6378febaf055dd9 (plain)
1
2
3
4
5
#!/usr/bin/awk -f
BEGIN { FS = ":" }
{ sub(/#.*/, "") }
/\S/ { total += $2 * 60 + $3 }
END { printf "%02d:%06.3f\n", total / 60, total % 60 }