Format the time stamp.