The respondent Grant B. LaDeaux brought this action to recover for overtime worked while a deputy sheriff in the service of the County of Alameda. The trial court entered judgment in respondent’s favor in the sum of $4,170.12.
There is little dispute about the evidence. Respondent began work for the County of Alameda in January 1945 and resigned May 1, 1963. Records of the sheriff’s office show that, during his service, he accumulated 1,121 hours of overtime, based upon a 40-hour work week. He was not paid for his accumulated overtime, either by cash or compensating time off his job. Upon termination of his services, he demanded pay in cash for his overtime work. The sheriff notified him that he had no authority to make payment. The county board of supervisors declined to pay his claim on the ground that the *263overtime worked had not been authorized, and because he had failed to seek payment on a regular monthly basis.
The county salary ordinance was in evidence. It was stipulated that its pertinent provisions were unchanged throughout the period of time covered by respondent’s overtime claim. Paragraph 12 of the ordinance relates to compensation for overtime services of employees of the county. The relevant provisions of the ordinance are quoted below.1
There was evidence that, in certain situations, as where the sheriff’s deputies were required to work overtime at the *264county fair, or in the event of overtime work in ease of public peril, such as flood, the sheriff had requested, and the board of supervisors authorized payment in cash for such services.
However, it was stipulated “that no employee of the County of Alameda has ever been paid in money for overtime served in any department in the County, without prior resolution of the Board of Supervisors having first approved said overtime or, in the case of an emergency, by subsequent written approval of said Board" except the “payment of the regular salary during which times a person is taking compensatory time off from his job. ’ ’
A system of “compensatory time payback" was also used by the sheriff to pay deputies for overtime services. In practice this meant giving the deputies time off the job, with pay. The county administrator and the board of supervisors were fully aware of this practice. The board of supervisors also knew that county employees were accumulating overtime and that the accumulation extended over a long period of time. It was stipulated that “the Board of Supervisors left the decision as to the granting of overtime leave to the discretion of the Department Head, if he could find time at or during which the employee would be away from the job." It would appear that the knowledge of the board concerning the overtime situation and particularly the fact that the board left the granting of overtime to the sheriff, met the ordinance requirement that the Board “in general terms" authorized the overtime work.
The sheriff kept careful records of overtime worked by employees of his department. He allowed compensating time off where possible and thereby reduced the accumulation, although much unpaid for time was owing. Some employees, upon leaving county service, were paid their overtime in cash by the simple device of adding their overtime to terminal leave, thus extending their separation date and continuing their regular pay.
There was also evidence that respondent was assigned to the civil division of the sheriff’s office during a part of his employment, and it was common knowledge that, in the service of civil process, employees of this division were often required to work overtime. For seven years of respondent’s service he was assigned to the “on call" list, by written assignment. Deputies on the “on call" list were required to work overtime when called.
Despondent’s claims for overtime were submitted to his *265superiors and approved in writing by them each month, as his services were rendered. When compensating time off was allowed it was deducted from his total, and in this way a running account of his overtime was kept up to date. The same practice was followed for others working in the sheriff’s department.
The superior court found from the evidence that respondent had worked the overtime claimed and had not been compensated for it; that the board of supervisors and the sheriff knew of, consented to, and authorized his overtime services. From these and other findings the court concluded that respondent had substantially complied with the provisions of the salary ordinance in the performance of overtime and that he was entitled to payment in cash for the services rendered.
Although the parties raise many issues in their briefs, we proceed at once to the heart of the case, exposed in appellant’s fourth point on appeal, in which it is urged that a public employee is not entitled to compensation for overtime work except in the manner specifically provided by law. This proposition is accepted by the respondent, who counters that he has complied with the salary ordinance of the county and hence is entitled to his compensation.
Appellant cites Martin v. Henderson, 40 Cal.2d 583 [255 P.2d 416] for the proposition that a person accepting a public office at a fixed salary is bound to perform the duties of the office for the salary stated, even though the salary be inadequate and the duties and burdens of the office later increased. In that ease the court said: “The fact that normal hours of work are established and compensating time off is provided for work beyond those hours does not, of itself, give the employee a right to payment for overtime.” (P. 590.) But in Martin the court was speaking of those situations uncontrolled by some statute or ordinance. In disapproving prior cases of the Court of Appeal, the Supreme Court expressly declared that, insofar as such eases “. . . determine that a state officer or employee, in the absence of specific statutory authority, is entitled to a cash payment for accrued overtime upon separation from service, they are disapproved.” (P. 591.) (Italics ours.) Here, of course, statutory provisions are made by the county ordinance providing for the payment of authorized overtime in cash. The critical questions thus are whether respondent’s overtime was “authorized” within the meaning of paragraph 12, subparagraphs (1) and (5) of the salary ordinance; whether the provisions of paragraph 12, *266subparagraph 8 providing for payment of overtime monthly are applicable, and whether the provisions of paragraph 12, subparagraph 9, which require compensating time off to be taken within one year, operate to defeat respondent’s claims. The effect of paragraph 8, subparagraph 2, quoted in footnote 1 above, must also be considered in determining the validity of the judgment.
Paragraph 12, subparagraph (1) of the Alameda County Salary Ordinance makes clear that overtime necessarily performed by county employees shall be paid for by the county. This portion of the ordinance declares the basic policy of the county, which is to pay for all services rendered to it by its employees, subject to essential procedural safeguards later spelled out in detail in the ordinance, likewise subject to any limitations contained therein.
Under the terms of the ordinance, overtime must be properly authorized by stated county officials in the manner described in the ordinance before it may become a valid charge against the county. Thus paragraph 12, subparagraph (5) requires that overtime be (a) found necessary before the services are performed; (b) approved in writing by the head of the department in which the services are rendered and (c) that the Board of Supervisors also authorize such services ‘ ‘ in general terms ’ ’ prior to performance.
The evidence in this case establishes substantial compliance with the foregoing requirements of the salary ordinance. The necessity for overtime services is shown by the establishment of the “on call” list, which clearly recognizes the need for the services of deputies at times other than during regular assigned hours. Respondent’s name was on that list from time to time for over seven years of his tenure, and it is a fair inference from the record that some of his overtime services resulted from that assignment. There was evidence, too, that working overtime was essential to proper performance of the duties of the civil division of the sheriff’s office where respondent also served, and that this fact was generally known. Finally, the fact that detailed records of overtime were kept by the sheriff is some recognition of the fact that it was necessary from time to time for overtime services to be rendered by the sheriff’s personnel.
Approval in writing by the sheriff before rendition of the services is also found in the evidence just described. The “on call” lists were in writing, and respondent was assigned in writing on that list for a long period of time.
Finally, approval by the board of supervisors is established *267by the evidence which shows knowledge on the part of the board that overtime services were being rendered by county employees, that records of such services were being kept by department heads, and that, where possible, compensatory time off was allowed employees who had overtime to their credit. The board had knowledge of all the facts, and presumably also knew of the basic policy expressed in the salary ordinance to the effect that overtime worked by county employees should be paid for. As stipulated, the board, aware of the practice, simply left the matter to the discretion of the head of the particular county department involved, and thus gave approval to their actions.
We come to the most serious question in the ease, namely, whether plaintiff may recover the value of his compensatory overtime for more than one year prior to his resignation. While his uncompensated overtime had been accumulating for approximately eight years, in the last year of his service he received more compensatory overtime than he earned in that particular year. So, unfortunately for him, if the provision in the ordinance limiting compensatory overtime to “within one year after the rendering of such service” applies, plaintiff may not recover in this case. We find nothing in the ordinance to overcome that provision.
The ordinance, of course, provides that overtime shall be paid for either in cash or in compensatory extra time. But such provision is subject to the rules and limitations set forth in the ordinance. While paragraph 12, subparagraph (1) provides “Anything in this Ordinance to the contrary notwithstanding . . . overtime . . . shall be paid for. . . .” it limits this phrase by the words immediately following “and except as hereinafter provided. ” (Italics ours.) One rule is that the sheriff has the discretion of determining whether the overtime shall be paid for in cash or in compensatory time off. The sheriff, exercising his discretion, determined that with the exceptions when he went to the board of supervisors for cash payment approval, overtime should only be paid for in time off. This is shown by the custom and by the fact that under paragraph 12, subparagraph 8 cash payments for overtime must be made monthly and no such payments were made, nor was compensation for overtime computed as paragraph 12 subparagraph 8 provides. This was for the very good reason that cash compensation was not to be paid.
It having been determined that overtime was to be paid only in time off, the one year limitation applies. There is no *268provision in the ordinance to the contrary. It is contended that because plaintiff’s overtime cannot now be compensated in time off and its value must be paid in cash, the situation must be considered as if the sheriff had elected during plaintiff’s employment to pay him in cash, and that there is no limitation in the ordinance on the time when that cash can be collected. However, there is such limitation. The cash payment is specifically made payable monthly on a specified type of computation. Compensatory time off is limited to within the year of the service. As plaintiff’s service has terminated it cannot be paid for in time off and if paid at all, must be paid in cash. Such fact does not permit of plaintiff receiving pay for a longer period than that to which he would have been entitled during his service.
• Paragraph 8, subparagraph (2) of the ordinance provides ‘ ‘ except as herein otherwise specifically provided, and except that overtime for which no special compensation is provided and for which time off has not been received may be added to the periods of time hereinafter specified for leave with pay. ’ ’ This provision does not change the one year time limitation in subsection (9). It should be noted that in all of the sections dealing with leaves of absence either with or without pay, limitations on length of absence are provided, a matter of significance in determining whether it was contemplated by the ordinance that compensatory time off would have no limitation.
As before stated, plaintiff’s overtime earned • during the year prior to his leaving the sheriff’s office was compensated for by time off. Although there is overtime in prior years which is not compensated for, the one year limitation bars recovery therefor.
Plaintiff contends that the doctrines of unjust enrichment and constructive trust are applicable here. In Gama v. County of Kern (1960) 179 Cal.App.2d 1, 4 [3 Cal.Rptr. 370], the court said: “Appellant cites no authority and we have found none authorizing the application of the theory of ‘unjust enrichment’ and ‘constructive trust’ to the general fund of a county on an ordinary debt for alleged unpaid wage items. We have here a simple case of alleged unpaid wages from a county to its employees. ”
In Slocomb v. City of Los Angeles (1961) 197 Cal.App.2d 794 [17 Cal.Rptr. 529] the court, in an action brought against the city by city employees for alleged overtime services, quoted with apparent approval the above statement from Gama and affirmed a judgment in favor of the city.
*269In the case at bench, we have been cited to no authorities making applicable either of said doctrines to the situation here, which is a claim for unpaid wages for overtime.
The judgment is reversed.
Draper, P. J., concurred.