util.js: Add time formatting functions from gPodder 3's QML UI