reuse time method for formatting in a few more places