Clinton pledged to implement the Iran deal while working with Israel

But his visit to Hillary Clinton in the evening lasted just about 50 minutes

Israeli prime minister Benjamin Netanyahu met both presidential candidates on Sunday and spent about twice as much time with Donald Trump then with Hillary Clinton.

Netanyahu, who was in New York City for the United Nations's general assembly, spoke with the two nominees the day before their first presidential debate.

He went to Trump Tower in the morning and stayed with Trump for about 90 minutes. Netanyahu then met Clinton in the evening at the W Hotel in Union Square for 50 minutes.

Clinton pledged to implement the Iran nuclear deal, which Netanyahu opposed vehemently in 2015, while working 'closely' with Israel.

Israeli prime minister Benjamin Netanyahu met Hillary Clinton in New York City on Sunday evening at the W Hotel in Union Square and stayed for about 50 minutes

Netanyahu met Donald Trump earlier on Sunday and went to Trump Tower in the morning. The two men spoke for an hour and a half

Reporters were barred from covering either meeting and the candidates' campaign staff provided accounts instead.

Clinton had an 'in-depth conversation with Netanyahu, her campaign said in a statement. She stressed that 'a strong and secure Israel is vital to the United States' and 'reaffirmed unwavering commitment' to the relationship.

They discussed Iran, the conflict in Syria and other regional challenges, including her support for a two-state solution to the Israel-Palestinian conflict negotiated by the two parties — not an outside organization like the US Security Council.

Clinton expressed her support for the 10-year, $38 billion military aid package signed between the two countries earlier the month and opposition to efforts to boycott Israel.

Trump and Netanyahu discussed 'at length' Israel's use of a fence to help secure its borders, an example Trump frequently cites when he's talking about the wall he wants to build between the US and Mexico.

Clinton (pictured during Netanyahu's visit on Sunday) pledged to implement the Iran nuclear deal, which Netanyahu opposed vehemently in 2015

The Democratic nominee (pictured arriving for her meeting with Netanyahu Sunday) stressed that 'a strong and secure Israel is vital to the United States'

Trump also promised to recognize Jerusalem as the capital of Israel if he becomes president.

The two men, who have known each other for years, discussed 'many topics important to both countries,' according to Trump's campaign, including 'the special relationship between America and Israel and the unbreakable bond between the two countries.'

These topics included the nuclear deal with Iran, the battle against Islamic State militants, military assistance provided by the US to Israel and other security issues.