Format time stamps.