Read this and answer the question

Since the tribunes were considered to be the embodiment of the plebeians, they were sacrosanct. Their sacrosanctity was enforced by a pledge, taken by the plebeians, to kill any person who harmed or interfered with a tribune during his term of office. All of the powers of the tribune derived from their sacrosanctity. One consequence was that it was considered a capital offense to harm a tribune, to disregard his veto, or to interfere with a tribune. In times of military emergency, a dictator would be appointed for a term of six months. Constitutional government would be dissolved, and the dictator would be the absolute master of the state. When the dictator's term ended, constitutional government would be restored.

How long could a dictator be appointed for in times of certain emergencies?
six months