Elections Code § 16520
ARTICLE 2. Contest Procedures at Primary Elections: Contests Other Than Recount
The clerk of the superior court, within five days after the end of the time for filing affidavits, shall present all the affidavits to the presiding judge of the superior court. The presiding judge shall forthwith designate the time and place of hearing, which shall be not less than 10 nor more than 20 days from the date of the order.