parse_rounding_unit function

Parse a time string