Plaintiff recovered judgment against the city of Long Beach for personal injuries sustained when, during darkness, she fell down an unlighted exterior stairway into the basement of a building erected, maintained and operated by the defendant city. She failed to file her claim for damages within the ninety-day period provided for by section 1 of Act 5149, Deering’s General Laws, 1937, page 2204 (Stats. 1931, p. 2475) but did file such claim within the six-month period ordained in section 338 of the charter of such city (Stats. 1921, p. 2054, 2151). Appellant (defendant) seeks revеrsal of the judgment on the ground, among others, that the requirements of the general law (Act 5149, supra) are applicable and mandatory. This position is well taken.
Respondent (plaintiff) endeavors to avoid the effect of the statute by arguing (1) that the building involved was operated by the defendant city in a proprietary capаcity, that therefore it is liable for its tort regardless of the provisions of the Public Liability Act of 1923 (act 5619, Deering’s Gen. Laws, 1937, p. 2630, Stats. 1923, p. 675) and that the limitation period of Act 5149, supra (Deеring’s Gen. Laws, 1937, p. 2204, Stats. 1931, p. 2475) controls claims under the Public *244 Liability Act but has no application to claims based on proprietary operations; (2) that the maintenance of the building was a purely municipal affair and that claims arising therefrom are controlled exclusively by the charter provision, which reads as follows: “Sec. 338. All claims for damages . . . must be presented to the city council, and filed with the city clerk within six months after the occurrence for which the damages arose.” (Stats. 1921, p. 2054 at 2151.)
The Public Liability Act of 1923, supra, mаkes a municipality (or county or school district) generally liable to be sued in tort actions for damages to person or property occasioned by the dangerous or defective condition of its public streets, buildings, grounds, or property, when its governing or managing board, or person having authority to remedy the condition, had knowledge or notice of the defect or danger and failed to remedy such condition or protect the public against it, within a reasonable time. This liability, insofаr as it derives from instrumentalities used for purely governmental functions, is one created by the statute; without the statute the city would be liable only if the instrumentality was used by it in some proprietary enterprise. We deem it unnecessary, however, to determine whether the defendant city acted in a governmental or in a proprietary capacity in erecting and maintaining the building with which we are concerned, because in either case the limitation prescribed by act 5149 is applicable. The language of that statute is clear. “Whenever it is claimed that any person has been injured ... as a result of the dangerous or defective condition of any public street, highway, building, ... or property, a verified claim for damages shall be presented in writing and filed with the clerk or secretary of the legislative body of the municipality . . . within ninеty days after such accident has occurred.” (Sec. 1, Act 5149, Deering’s Gen. Laws, 1937, p. 2204, Stats. 1931, p. 2475.)
That act is not amendatory of, dependent upon, or limited by, the Public Liability Act of 1923, supra (Act 5619, Deering’s Gen. Laws, 1937, p. 2630, Stats. 1923, p. 675; see Johnson v. City of Glendale (1936), supra, 12 Cal. App. (2d) 392-393 [55 Pac. (2d) 580]); it purports to declare the limitation applicable “whenever” any person claims damages against a municipality arising out of the defective condition of “any” public street, highway, building, etc. To uphold respondent’s position we should, in effect, have to write into that law words of limitation and exception making it read, *245 “Only when it is claimed that any person has been injured ... as a result of the dangerous or defective condition of any public street, highway, building, ... or property not owned or operated or maintained in a proprietary capacity, a verified claim for damages shall be presented,” etc. We perceive no justification and have no authority for such judicial legislation. We must accept and apply the law as the legislature has written it.
Some of the decisions applying such law in cases where its constitutionality has bеen questioned, which cases were based upon the Public Liability Act, have suggested the fact that liability under such act is of purely statutory creation and that therefоre it may be limited as the legislature sees fit (see
Johnson
v.
City of Glendale
(1936),
supra,
12 Cal. App. (2d) 389, 395;
Young
v.
County of Ventura
(1940), 39 Cal. App. (2d) 732, 735 [
Respondent also urges, as before noted, that the erection and maintenance of the building was a purely municipal affair and that thereforе the procedure, including limitation of time, for filing claims against the city arising out of its tortious acts or omissions in connection with such building is likewise exclusively of municipal concern and governed by its charter. Even if we assume respondent’s premise her asserted conclusion does not follow. The opening and maintenance of рublic streets is typically a municipal affair
(Byrne
v.
Drain
(1900),
Since liability for tort is not a municipal affair the charter of defendant city (sec. 338, Stats. 1921, p. 2054, 2151) is non-operative in this case. The city had no power either to extend or to diminish the time fixed by the state law for filing a claim for damages arising out of the defective condition of a building erected and maintained by it (see
Young
v.
County of Ventura
(1940),
supra,
39 Cal. App. (2d) 732, 736;
Kelso
v.
Board of Education
(1941), 42 Cal. App. (2d) 415, 420 [
The judgment is reversed with directions to the trial court to enter a judgment dismissing the action.
Shinn, J., and Wood (Parker), J., concurred.
