1 2 3 4 5 6 7 8 9
#!/bin/sh while : do date +"pretty='%A, %-d of %B %Y — %T %Z' month='%m'" \ | ordinal -p1 \ | xargs jo date +%s.%N | dc -e "? d 1 + 1 / r - p" | xargs sleep done