According to the Uniform Plumbing Code, unions are to be installed within____of a water heater?

According to the Uniform Plumbing Code, unions are to be installed within____of a water heater?