NEW YORK — Gov. Andrew Cuomo signed legislation Wednesday to make it easier to prosecute some sex crimes by extending the statute of limitations for second- and third-degree rape.

The Democratic governor was joined by actresses Mira Sorvino and Julianne Moore as well as activists from the group Time's Up as he signed the measure at his Manhattan office.

"Rape and sexual assault are much more common and frequent than we admit," Cuomo said. "You will never solve a problem in life that you are unwilling to admit and denial is not a life strategy. We have denied this for too long."

The new law extends the statute of limitations from five years to 20 years for second-degree rape and from five years to 10 years for third-degree rape. Second- and third-degree rape can be charged under New York law when a victim cannot consent to sex either because of age or incapacity.

"The law said a victim of rape has to bring their claim in five years or they lose their right," Cuomo said. "Five years is a terribly short period of time if you have any appreciation for what the person went through."

Sorvino, who was one of producer Harvey Weinstein's early accusers and who has said she is a survivor of date rape by another man whom she did not identify, said every time someone stands up to "rape culture" it means "we stand up for all of us."

"There is a hunger out there for justice," Sorvino said, "and we are here to tell all of you who feel that hunger that we are getting closer to that day when predators will not abuse unabated in an atmosphere of impunity."

The new law also extends the statute of limitations to 20 years for a criminal sexual act in the second degree and incest in the second degree, and to 10 years for a criminal sexual act in the third degree.

It eliminates the statute of limitations for incest in the first degree and increases the time period in which victims can bring a civil suit for these offenses to 20 years.