Created Time formatter method

Tired of formatting time again and again