#!/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