formated the output from clock