Changed the original output time into a formatted time.
Added methods to change time into a formatted time.