Skip to content

Commit 33ce525

Browse files
committed
Restoring clockhands file
1 parent 4334c04 commit 33ce525

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bash/clockhands.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
for i in {0..10}; do
3+
t=$(( (43200 * i + 21600) / 11 ))
4+
h=$((t / 3600))
5+
m=$((t / 60 % 60))
6+
s=$((t % 60))
7+
printf "%02d:%02d:%02d\n" $((h == 0 ? 12 : h)) $((m)) $((s))
8+
done

0 commit comments

Comments
 (0)