In computing the number of years a person has been a judge for the purposes of retirement under Sections 75025 or 75060, there shall be included any time as he or she was absent from his or her position as judge by reason of service with the armed forces of the United States during a war involving the United States as a belligerent or in any other national emergency, and for six months thereafter.
This section shall be retroactively applied to extend its benefits to all judges who served in the military service in time of war, including the period September 16, 1940, to December 7, 1941, and who return or have returned to their positions upon the termination of their military service or within six months thereafter. The provisions of this section apply to any person who resigned judicial office to enter military service in time of national emergency declared by the President prior to the authorization by law of military leave, if he or she returned to judicial office within 90 days after his or her separation from military service.
Ca. Gov. Code § 75031