title: C++ , 'time' was not declared in this scope, without reason
body: <p>I'm building an Arduino sketch and I'm stuck with a strange error:</p>
  
  <blockquote>
    <p>'time' was not declared in this scope</p>
  </blockquote>
  
  <p>These are my includes:</p>
  
  <pre><code>#include &lt;ESP8266HTTPClient.h&gt;
  #include &lt;ESP8266WiFi.h&gt;
  #include &lt;time.h&gt;
  #include &lt;DS3232RTC.h&gt; //http://github.com/JChristensen/DS3232RTC
  #include &lt;Streaming.h&gt; //http://arduiniana.org/libraries/streaming/
  #include &lt;Time.h&gt; //http://playground.arduino.cc/Code/Time
  #include &lt;Wire.h&gt; //http://arduino.cc/en/Reference/Wire
  #include &lt;TimeLib.h&gt;
  </code></pre>
  
  <p>And this is the function where I get the error:</p>
  
  <pre><code>void wifiTimeSetup() {
    configTime(timezone * 3600, 0, "pool.ntp.org", "time.nist.gov");
    Serial.println("Mi sto collegando al servizio per l'ora esatta tramite internet");
    while (!time(nullptr)) {
      Serial.print(".");
      delay(1000);
    }
    Serial.println("");
  }
  </code></pre>
  
  <p>The error comes up when including the Time.h and TimeLib.h libraries, but I need them too, to use my RTC module.</p>