Format metric timestamp in String method