format the returned time