The city’s 2001 zoning regulation aimed at cleaning up Times Square by restricting where jiggle joints could be located is a relic of a priggish past, a Manhattan judge has ruled.

Federal Judge William Pauley, in a decision issued late Monday, upheld the ongoing blocked enforcement of the law — because no one has yet decided whether it is actually constitutional.

Referring to the plaintiffs as “owners and operators of gentlemen’s cabarets (or in lay terms, strip clubs),” Pauley said their lawsuit against the reg “has been ensnared in a time warp for a quarter century.

“The adult-use regulations that are the subject of these now-revived constitutional challenges are a throwback to a bygone era,” the judge wrote. “The City’s landscape has transformed dramatically since [the city] last studied the secondary effects of adult establishments twenty-five years ago.”

He said the 2001 zoning standards — including provisions that would keep any X-rated establishment from operating within 500 feet of a school, church or another raunchy business — could infringe on the joints’ constitutional rights to freedom of expression.

Multiple business, including strip clubs and adult book and video stores, sued the city in 2002, asking a judge to prohibit the enforcement of the 2001 zoning amendment targeting smut shops.

The amendment was never enforced due to ongoing litigation, and Pauley’s ruling continues to block enforcement, although he didn’t definitively rule on the constitutionality of the city’s regulations. That would be up to a higher court.

Reached for comment, a Law Department spokesman said this wasn’t a loss for the city.

“This ruling, as the Court reiterated, says nothing about whether the adult-only businesses will succeed on the merits of their claims,” he said in a statement. “In fact, the state Court of Appeals ruled for the City in a similar challenge and upheld the zoning regulations at issue here.”