summaryrefslogtreecommitdiff
path: root/bin/timesum
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2026-01-15 22:34:35 -0500
committerSam Nystrom <sam@samnystrom.dev>2026-01-15 22:34:35 -0500
commitc40794b2040330ec2625bedf7df961115680c08b (patch)
tree4ff1d4fda76d5d59d5d3604a015cc474438ab470 /bin/timesum
parent8fdacc55625a04f94d3e364d53aeec84bc93f6be (diff)
update bin
Diffstat (limited to 'bin/timesum')
-rwxr-xr-xbin/timesum5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/timesum b/bin/timesum
new file mode 100755
index 0000000..b6a03d1
--- /dev/null
+++ b/bin/timesum
@@ -0,0 +1,5 @@
+#!/usr/bin/awk -f
+BEGIN { FS = ":" }
+{ sub(/#.*/, "") }
+/\S/ { total += $2 * 60 + $3 }
+END { printf "%02d:%06.3f\n", total / 60, total % 60 }