Functions for clocktable.org and wasteclock.org (provisional)