format time of rest