Move time format functions into a base module to avoid mutual dependencies arising
Deal with the time formatting in one place instead of having implementation details all over the place