(a)
“County peace officer” shall also include the constable and each regularly employed deputy constable and the marshal and each regularly employed deputy marshal who serves the superior court. He or she shall receive credit for service as a peace officer for any time he or she served as constable or deputy constable of a township or justice court or marshal or deputy marshal of a municipal court in the same county.
(b)
The provisions of this section do not apply to the employees of a contracting agency nor to the agency, unless and until the contracting agency elects to be subject to this section by amendment to its contract with the board, made as provided in Section 20474, or by express provision in its contract with the board.
(c)
“County peace officer” does not include any officer or employee who is a local sheriff, as defined in Section 20432.5.