/ bin / beat
beat
1  #!/bin/sh
2  
3  b=$(echo "(($(date +'%s')+3600)%86400)/86.4" | bc)
4  printf "%03d" "${b}"