diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2026-01-15 22:34:35 -0500 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2026-01-15 22:34:35 -0500 |
| commit | c40794b2040330ec2625bedf7df961115680c08b (patch) | |
| tree | 4ff1d4fda76d5d59d5d3604a015cc474438ab470 /bin/timesum | |
| parent | 8fdacc55625a04f94d3e364d53aeec84bc93f6be (diff) | |
update bin
Diffstat (limited to 'bin/timesum')
| -rwxr-xr-x | bin/timesum | 5 |
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 } |
