Restraining orders can be either temporary or permanent. A temporary restraining order usually goes into effect immediately after it is issued and only lasts for a short period of time (usually 5 to 15 days). The purpose of a temporary restraining order is to prevent any harm from occurring before an official hearing can be held. A permanent restraining order lasts for longer periods of time and can be put into effect as many as several weeks to years, and in some instances, for an indefinite amount of time. They are often used as a means of protection for victims of certain crimes, such as domestic abuse, child abuse, sexual assault, harassment, stalking, and other offenses.