Rejigger time display method

Switch to some conditional digit writing. String to int method has too
many edge cases.