How long was Arnold Schwarzenegger the governor of the state of California?

How long was Arnold Schwarzenegger the governor of the state of California?