No officer of a county or judicial district shall absent himself from the state for more than 30 days unless either:
In no case shall such officer absent himself from the state for more than two months without the consent of the board of supervisors, with the written approval of the Governor, nor shall such absence continue for a period exceeding six months in any one year.
This section does not apply to judicial officers.
Ca. Gov. Code § 1063