In computing the number of years of service, wherever necessary to become eligible for appointment and retirement under this chapter, the entire year in which a superior court judge would become eligible shall be computed as a part of the required number of years of service, although actually he served for only a part of that year.