CAIRO -- CAIRO (AP) — The Cabinet spokesman says Egypt's 3-month-old state of emergency is ending Tuesday after a court ruling.

A Cairo court ruled earlier in the day that the state of emergency expires Tuesday, Nov. 12, two days earlier than the interior minister said it would end.

The discrepancy came because while the state of emergency began on Aug. 14, it was renewed for two months on Sept. 12. The court said that means it ends on Nov. 12, not Nov. 14.

The end of the state of emergency would mean the end of a curfew also in place. The Cabinet spokesman says the government will abide by the ruling, but is waiting for the court to issue the decision in writing. It was not clear how long that would take.

Also on HuffPost:

Loading Slideshow...
  • Pro-military crowds and supporters of the former president, Mohammed Morsi, pelt each other with rocks, fireworks and firebombs in street battles near Ramsis Square, Cairo, Egypt, Sunday, Oct. 6, 2013. (AP Photo/Emad Abdul Rahman)

  • A supporter of ousted Egyptian President Mohammed Morsi prays in the street, left, while another holds a poster with a gesture of an open palm with four raised fingers that has became a symbol for the Rabaah al-Adawiya mosque where hundreds of Muslim Brotherhood supporters were killed by security forces in August, near Ramsis Square, Cairo, Egypt. (AP Photo/Sabry Khaled, El-Shorouk Newspaper)

  • An Egyptian mourns a loved one, who was a supporter of Egypt's ousted President Mohammed Morsi, killed during clashes with security forces in Cairo, Egypt, Sunday, Oct. 6, 2013. (AP Photo/Hassan Ammar)

  • An Egyptian Army officer tries to prevent a supporter of Defense Minister Gen. Abdel-Fattah el-Sissi from clashing with supporters of ousted President Mohammed Morsi near Ramsis Square, Cairo, Egypt, Sunday, Oct. 6, 2013. (AP Photo/Sabry Khaled, El-Shorouk Newspaper)

  • Egyptians mourn a loved one, who was a supporter of Egypt's ousted President Mohammed Morsi, killed during clashes with security forces, in a clinic in Cairo, Egypt, Sunday, Oct. 6, 2013. (AP Photo/Hassan Ammar)

  • Supporters of Egypt's ousted President Mohammed Morsi mourn relatives killed during clashes with security forces in Cairo, Egypt, Sunday, Oct. 6, 2013. Deadly clashes left tens dead and scores injured as rival crowds of supporters of the military and backers of Morsi poured into streets around the country Sunday, as a holiday marking the anniversary of the last war with Israel turned into a showdown between the country's two rival camps. (AP Photo/Hassan Ammar)

  • Egyptians try to comfort a man as he mourns a relative, who was a supporter of ousted President Mohammed Morsi, killed during clashes with security forces in Cairo, Egypt, Sunday, Oct. 6, 2013. Deadly clashes left tens dead and scores injured as rival crowds of supporters of the military and backers of Morsi poured into streets around the country Sunday, as a holiday marking the anniversary of the last war with Israel turned into a showdown between the country's two rival camps. (AP Photo/Hassan Ammar)

  • A man identifies the body of a supporter of Egypt's ousted President Mohammed Morsi who was killed during clashes with security forces in Cairo, Egypt, Sunday, Oct. 6, 2013. Deadly clashes took place as rival crowds of supporters of the military and backers of Morsi poured into streets around the country Sunday, as a holiday marking the anniversary of the last war with Israel turned into a showdown between the country's two rival camps. (AP Photo/Hassan Ammar)

  • A supporter of Egypt's ousted President Mohammed Morsi grieves for a relative killed during clashes with security forces in Cairo, Egypt, Sunday, Oct. 6, 2013. (AP Photo/Hassan Ammar)

  • Egyptians chant pro-army slogans and hold posters of Egyptian Defense Minister Gen. Abdel-Fattah el-Sissi, as they celebrate the 6th of October, 1973 war anniversary, in Tahrir Square, Cairo, Egypt, Sunday, Oct. 6, 2013. (AP Photo/Khalil Hamra)

  • Egyptian military helicopters fly overhead as army soldiers stand guard at an entrance to Tahrir Square, in Cairo, Egypt, Sunday, Oct. 6, 2013. Deadly clashes took place as rival crowds of supporters of the military and backers of ousted President Mohammed Morsi poured into streets around the country Sunday, as a holiday marking the anniversary of the last war with Israel turned into a showdown between the country's two rival camps. (AP Photo/Khalil Hamra)

  • An Egyptian army soldier greets a child dressed in a military costume as they guard an entrance to Tahrir Square, in Cairo, Egypt, Sunday, Oct. 6, 2013. (AP Photo/Khalil Hamra)

  • Egyptians hold posters of Egyptian Defense Minister Gen. Abdel-Fattah el-Sissi, left, and former president Gamal Abdel-Nasser with an unknown victim of the Jan. 25th revolution, as they celebrate the 6th of October 1973 war anniversary, in Tahrir Square, in Cairo, Egypt, Sunday, Oct. 6, 2013. (AP Photo/Khalil Hamra)

  • Egyptians chant pro-army slogans and hold posters of Egyptian Defense Minister Gen. Abdel-Fattah el-Sissi, as they celebrate the 6th of October war anniversary, in Tahrir Square, in Cairo, Egypt, Sunday, Oct. 6, 2013. Deadly clashes took place as rival crowds of supporters of the military and backers of ousted President Mohammed Morsi poured into streets around the country Sunday, as a holiday marking the anniversary of the last war with Israel turned into a showdown between the country's two rival camps. (AP Photo/Khalil Hamra)

  • An Egyptian riot policeman moves into position during clashes with supporters of ousted President Mohammed Morsi, in Cairo, Egypt, Sunday, Oct. 6, 2013. Rival crowds of supporters of Egypt's military and backers of the Islamist president deposed by the army poured into streets around the country Sunday, as a holiday marking the anniversary of the last war with Israel turned into a showdown between the country's two camps. (AP Photo/Hassan Ammar)

  • Supporters and opponents of Egypt's ousted Islamist President Mohammed Morsi clash in Cairo, Egypt, Sunday, Oct. 6, 2013. Rival crowds of supporters of Egypt's military and backers of the Islamist president deposed by the army poured into streets around the country Sunday, as a holiday marking the anniversary of the last war with Israel turned into a showdown between the country's two camps. (AP Photo/Hassan Ammar)

  • Egyptian riot police move into position during clashes with supporters of ousted President Mohammed Morsi, in Cairo, Egypt, Sunday, Oct. 6, 2013. Rival crowds of supporters of Egypt's military and backers of the Islamist president deposed by the army poured into streets around the country Sunday, as a holiday marking the anniversary of the last war with Israel turned into a showdown between the country's two camps. (AP Photo/Hassan Ammar)

  • Supporters and opponents of Egypt's ousted Islamist President Mohammed Morsi clash in Cairo, Egypt, Sunday, Oct. 6, 2013. Rival crowds of supporters of Egypt's military and backers of the Islamist president deposed by the army poured into streets around the country Sunday, as a holiday marking the anniversary of the last war with Israel turned into a showdown between the country's two camps. (AP Photo/Hassan Ammar)

  • Supporters and opponents of Egypt's ousted Islamist President Mohammed Morsi clash in Cairo, Egypt, Sunday, Oct. 6, 2013. Rival crowds of supporters of Egypt's military and backers of the Islamist president deposed by the army poured into streets around the country Sunday, as a holiday marking the anniversary of the last war with Israel turned into a showdown between the country's two camps. (AP Photo/Hassan Ammar)