rtsprange: Add function to convert a range between formats