Teresa G. Benson appeals from that portion of a judgment denying her the right, after the demise of her former spouse, August Benson, to receive a widow’s pension from the City of Los Angeles. The city also prosecutes an appeal, hut only from that portion of the judgment which awards to Olive M. Benson, the widow of August, interest on accrued pension benefits withheld by the city pending the award of the pension to Olive. The appeals arise out of an action by Olive and a cross-action by Teresa against each other and the city for declaratory relief as to their entitlement to the widow’s pension in question, and for accruals of payments and interest allegedly withheld by the city.
Teresa married August in January 1920 and resided with him in California from that date until 1945. Between 1916 *358 and 1940 August was employed by the Los Angeles Fire Department. During that time withholdings were made from his earnings in the amount of his contribution for pension benefits pursuant to provisions in the Los Angeles Charter. In 1940 he retired from active service and thereafter regular pension payments were made to him in accordance with the charter provisions.
In 1945 August commenced an action against Teresa for divorce. She cross-complained and a decree of separate maintenance was awarded to her. In that action, although the court found that the parties were possessed of a community property interest in the pension, no division of such interest was made.
In 1952, after moving to the District of Columbia, August commenced an action for and was granted a divorce from Teresa. She was not personally served in the District of Columbia and did not make an appearance. It does not appear that the court purported to adjudicate property matters as between the parties.
In 1953 August married Olive and thereafter resided with her until his death in 1960.
Shortly after August’s death, and preliminary to the instant actions, both Teresa and Olive filed claims with the City of Los Angeles for the widow’s pension benefits based upon August’s service. The claims were denied in both instances, the city maintaining that it was obligated to neither claimant for a pension as neither was qualified under the charter provisions.
The city’s appeal, insofar as its notice of appeal discloses, is from the whole of the judgment except that portion awarding nothing to Teresa. It sought to avoid the obligation to Olive on the ground of a 1925 modification of the provisions governing the widow’s pension, wherein eligibility of the widow was changed from marriage to the member of the retirement system for at least one year prior to the date of his death to marriage for at least one year prior to his retirement, which remains the current requirement. After the filing of the instant claims the modification was held in other proceedings to be invalid as to a widow of a pensioner who was a member of the retirement system prior to the modification.
(Henry
v.
City of Los Angeles,
The judgment of the trial court was predicated upon the finding that Olive and not Teresa is the “widow” of the deceased pensioner within the meaning of that term as used in section 4 of article XI% of the Los Angeles City Charter which, under the rule of the Henry, Eaton, and Atwell cases, must be looked to in the instant case. (Stats. 1923, pp. 1413, 1414.)
The portion of that section relevant to the issues herein provides: “Whenever any member of the Fire or Police Department shall die ... then an annual pension shall be paid in equal monthly installments to his widow ... in an amount equal to one-half (%) of the salary attached to the rank or position which such deceased person held ... Provided, however, that no widow of a pensioner shall be entitled to a pension unless she shall have been married to such deceased pensioner at least one year prior to the date of his death....”
Following the aforesaid modification in 1925 the governing provision became section 183, but the references therein to “widow” were not made more specific and at no time has that term been defined by a charter provision.
The real question to be determined is whether the ordinary meaning of the term “widow” can be applied to defeat Teresa’s claim in a pension earned with community funds and efforts. It is established that pension rights of a municipal employee are an integral part of his earnings.
(Dryden
v.
Board of Pension Comrs.,
In view of the foregoing Teresa claims that she alone is en
*360
titled to the community assets after August’s death, and that it was a denial of due process to deprive her of such property right by an ex parte decree of divorce in a foreign jurisdiction. (See
Estate of Undegraph,
We shall consider first the nature of Teresa’s property right. Conceding the community nature of the pension, it follows that the community possessed only such an interest therein as August’s employment contract provided. The city need perform only in accordance with the contract as the terms thereof are contained pursuant to the charter provisions. That contract provided for payments to August during his lifetime and thereafter for the payment of benefits to August’s “widow.” Certainly if August had married and divorced several wives during the time he was employed by the city, each former wife would not be entitled to a widow’s pension. It is apparent that the contract between the city and the community did not contemplate multiple or divisible pensions, but instead a pension for the member’s “widow” only. The only qualification which the charter provision imposes is that which requires the claimant to have been married to the pensioner “at least one year prior to the date of his death.” But even this contemplates more than the bare fact that a marriage had taken place at such time, as the one eligible to make claim is further described as the “widow,” and the obvious inference is that such marriage must have continued until the member’s death.
On the face of the contract entered into between the community and the city, Teresa was not entitled to assert any personal rights other than those of the community, which were to enforce payments to August and after his death to his widow.
(Packer
v.
Board of Retirement,
This is not to say that upon a division of the community estate she could not have participated therein. Undoubtedly she had an interest which she could have asserted in the payments to August during his lifetime, had she sought to do so. But after August’s death the only right remaining was to enforce the city’s covenant to make payments to the “widow.”
The nature of a wife’s interest in a death benefit pension prior to her husband’s demise has before been considered. In
*361
Packer
v.
Board of Retirement, supra,
The rule that a wife’s interest in a widow’s pension may never vest in her in the absence of the happening of the contingency upon which payment of the widow’s pension depends was firmly established before the
Packer
case. (See
Sweesy
v.
Los Angeles etc. Retirement Board,
No reason is suggested why we should depart from the foregoing decisions to the effect that a wife of a public employee acquires no vested interest in a pension until it becomes payable to her. On the other hand, to vest such an interest prior thereto “would remove a considerable amount of the flexibility necessary for operation of pension systems, because it would mean that provisions benefiting any third person would be frozen into the law with respect to all employees then in service and that these interests could not be removed regardless of the consent of the employee and regardless of whether the employee was given other pension benefits which might be of greater value to him than the one sought to be eliminated.”
(Packer
v.
Board of Retirement, supra,
It is true that in the Packer ease the court had before it a change in the applicable statute which resulted in the elimination of the widow’s pension, whereas in the instant ease Teresa complains only of conduct by August resulting in the claimed detriment. But the cases are not distinguishable in principle. In Packer it was, in the final analysis, the husband’s failure to exercise his option which made it impossible for his wife to eventually become vested of a pension. In the instant case it was August’s divorce action which prevented Teresa from becoming vested of her pension. In each instance it was what might be termed ex parte action on the part of the husband which resulted in the claimed detriment. Yet it was held in the Packer case that the deprivation of the widow’s pension was not an unconstitutional impairment of any rights of which she was vested. Similarly in the instant case August deprived Teresa of no vested right when he divorced her and thus prevented the happening of the necessary contingency that she become his widow before being entitled to the pension provided therefor.
Claim is made herein that by analogy to a wife’s right to share in the proceeds of life insurance paid by premiums from community funds without her consent (see
Sieroty
v.
Silver,
*363
In the case of insurance any change in the beneficiary away from the wife without her consent, and without a valuable consideration other than substitution of beneficiaries, is voidable in its entirety by her during her husband’s lifetime.
(Sieroty
v.
Silver, supra,
The vested interest which the wife may protect by her collateral control thus precludes an involuntary deprivation thereof in the case of the community interest in insurance on the husband’s life. But the acquisition by a wife of a vested interest in her husband's public employment contract might defeat the public purpose in providing a retirement plan for public employees. The distinction lies in the nature of the control which the law permits the husband and wife to independently, lawfully exercise regardless of the community nature of the pension right, and for policy reasons it is deemed necessary that the husband-employee alone exercise control unhampered by vested interests in any third party, including his community partner.
There remains the question of whether Olive is entitled to recover interest against the city upon unpaid pension payments which accrued prior to the date of entry of judgment. It is contended by the city (1) that there is no statutory authority for the recovery of such interest; (2) that it was *364 improper for the trial court to permit Olive to amend her complaint by adding a specific prayer for interest; and (3) that in any event such interest could not be awarded, since the claim for unpaid pension payments, filed with the city prior to the commencement of this action, did not specifically request interest in addition to the pension amounts.
It is well settled “in the absence of special statutory authorization, interest cannot be recovered against the state or a municipality.”
(Los Angeles Dredging Co.
v.
City of Long Beach,
Section 3287 provides as follows: “Every person who is entitled to recover damages certain, or capable of being made certain by calculation, and the right to recover which is vested in him upon a particular day, is entitled also to recover interest thereon from that day. . . . This section is applicable to recovery of damages and interest from any such debtor, including the State or any county, city, city and county, municipal corporation, public district, public agency, or any political subdivision of the State.” (As amended Stats. 1955, ch. 1477, p. 2689, § 1; Stats. 1959, ch. 1735, p. 4186, § 1.) In 1955 the section was made applicable to any “political subdivision of the State,” while the 1959 amendment thereto added in part, cities, municipal corporations, and public agencies to those governmental bodies which were susceptible to the provisions of the statute.
In 1958 in
Abbott
v.
City of Los Angeles,
In support of its first contention the city argues that the interest provisions of section 3287 do not apply to the instant ease, since the pension benefits herein constitute obligations payable out of a public retirement fund. In support of this position, it cites the companion eases of
Jorgensen
v.
*365
Cranston,
While the instant action was brought to recover damages for breach of contract and to establish rights thereunder, the actions of
Jorgensen
and
McWilliams
constituted proceedings in mandamus to compel the defendant therein, in accordance with an amendment to the Government Code, to issue a warrant in payment of installments due on a death benefit pension from the judges’ retirement fund. The refusal to award interest was predicated upon the rule that the recovery of interest is improper in a special proceeding to compel the performance of a duty especially enjoined by law.
(Sheehan
v.
Board of Police Comrs.,
Moreover the judges’ retirement fund is a special trust fund and as such may not fall within the meaning of section 3287 (see
Jorgensen
v.
Cranston, supra,
The city further urges that the recovery of interest herein is governed by section 3302 of the Civil Code and not section 3287 thereof. Section 3302 provides that: “The detriment caused by the breach of an obligation to pay money only, is deemed to be the amount due by the terms of the obligation, with interest thereon.” The city would equate the “obligation” mentioned in section 3302 with the judgment herein, and contends that interest cannot be recovered for any period prior to the date of entry of the judgment.
Sections 3287 and 3302 of the Civil Code are not mutually exclusive and should be construed together, thus subjecting the city to liability for prejudgment interest on past due pension installments if they constitute an “obligation.” Both sections fall within title 2 of division 4 of the Civil Code. The term “damages” as used in chapter I thereof (wherein *366 § 3287 appears and which is entitled “Damages in General”) and in chapter II (wherein § 3302 is found and which is entitled “Measure of Damages”) is defined in section 3281 to mean recovery for the unlawful act or omission of another which causes detriment and which is compensable in money. Clearly the detriment caused by the wrongful withholding of past due pension payments falls within the definition of damages, and as clearly the past due payments represent obligations on which interest will run.
It is also contended in connection with the claim of a lack of statutory authorization for interest that the city fell within the exception of section 3287 since it was “prevented by law . . . from paying the debt” to Olive until after the commencement of this action. The city thus contends that, until there had been a final determination in other proceedings that the 1925 amendment to the city charter was unconstitutional in part, it was prevented by law from paying her claim. The portion deemed unconstitutional was the aforementioned provisions which changed the eligibility requirement that a widow be married to a pensioner for at least one year prior to his retirement instead of one year prior to his death.
The uncertainty which existed as to the constitutionality of the charter provision was an uncertainty as to law—not fact. Ignorance of the law will normally not serve as a defense to an action, including an action for interest. (See
Perkins
v.
Benguet Consol. Mine Co.,
Examining next the city’s contention that it was improper for the trial court to permit an amendment to the pleadings adding a specific prayer for the allowance of interest, it should suffice to state that interest may be awarded in a contested action even though there is no specific prayer therefor.
(Perry
v.
Magneson,
The city’s assertion that the recovery of interest herein is barred by the failure of the plaintiffs to file a claim with the city for such interest is equally without merit. Because the city rejected the claimants’ applications for pen
*367
sion benefits any further demand for interest became a futile act not required by law. (See
Perkins
v.
Benguet Consol. Mine Co., supra,
The judgment is affirmed.
Gibson, C. J., Traynor, J., Schauer, J., McComb, J., Peters, J., and Tobriner J., concurred.
