TEHRAN, Iran -- Iran's president issued a direct threat to the West on Tuesday, claiming his country is capable of restarting its nuclear program within hours - and quickly bringing it to even more advanced levels than in 2015, when Iran signed the nuclear deal with world powers.

Hassan Rouhani's remarks to lawmakers follow the Iranian parliament's move earlier this week to increase spending on the country's ballistic missile program and the foreign operations of its paramilitary Revolutionary Guard.

The bill - and Rouhani's comments - are seen as a direct response to the new U.S. legislation earlier this month that imposed mandatory penalties on people involved in Iran's ballistic missile program and anyone who does business with them. The U.S. legislation also applies terrorism sanctions to the Revolutionary Guard and enforces an existing arms embargo.

Get Breaking News Delivered to Your Inbox

If Washington continues with "threats and sanctions" against Iran, Rouhani said in parliament on Tuesday, Tehran could easily restart the nuclear program.

"In an hour and a day, Iran could return to a more advanced (nuclear) level than at the beginning of the negotiations" that preceded the 2015 deal, Rouhani said.

He did not elaborate.

The landmark agreement between Iran and world powers two years ago capped Iran's uranium enrichment levels in return for the lifting of international sanctions.

It was not immediately clear what Rouhani was referring to - and whether he meant Iran could restart centrifuges enriching uranium to higher and more dangerous levels.

He also offered no evidence Iran's capability to rapidly restart higher enrichment, though Iran still has its stock of centrifuges. Those devices now churn out uranium to low levels that can range from use as reactor fuel and for medical and research purposes, but could produce the much higher levels needed for a nuclear weapon.

Iran long has insisted its atomic program is for peaceful purposes despite Western fears of it being used to make weapons.

However in December, Rouhani ordered up plans on building nuclear-powered ships, something that appears to be allowed under the nuclear deal.

Rouhani's remarks were likely an attempt to appease hard-liners at home who have demanded a tougher stand against the United States. But they are also expected to ratchet up tensions further with the Trump administration.

Iran has said the new U.S. sanctions amount to a "hostile" breach of the 2015 nuclear deal.

"The U.S. has shown that it is neither a good partner nor a trustable negotiator," Rouhani added. "Those who are trying to go back to the language of threats and sanctions are prisoners of their past hallucinations. They deprive themselves of the advantages of peace."

But Rouhani also tempered his own threat, adding that Iran seeks to remain loyal to its commitments under the nuclear deal, which opened a "path of cooperation and confidence-building" with the world.

"The deal was a model of the victory of peace and diplomacy over war and unilateralism," said Rouhani. "It was Iran's preference, but it was not and will not remain Iran's only option."