Cal. Elec. Code § 16401
The contestant shall verify the statement of contest, as provided by Section 446 of the Code of Civil Procedure, and shall file it within the following times after the declaration of the result of the election by the body canvassing the returns thereof: