Changed function name of formatTime