Rewrite of time_format method for clarity

Tidy up white space