time_t does not name a type compiling error

I'm trying to do the ePaper Weather Station (Overview | eInk / ePaper Weather Station | Adafruit Learning System). But when I'm compiling the code I get the error message time_t does not name a type. I've tried to update Arduino IDE and all the libararies but still the same error. The code is here Arduino Setup | eInk / ePaper Weather Station | Adafruit Learning System. Thanks for any help.

Copy the complete error message from the Arduino IDE's black window. Post post it here with code tags.

Here's the error message

Arduino:1.8.10 (Mac OS X), Kort:"Arduino/Genuino Uno"

In file included from /Users/davidalbert/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Configuration.hpp:96:0,
                 from /Users/davidalbert/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Namespace.hpp:7,
                 from /Users/davidalbert/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson.hpp:15,
                 from /Users/davidalbert/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson.h:9,
                 from sketch/OpenWeatherMap.h:3,
                 from sketch/OpenWeatherMap.cpp:1:
/private/var/folders/nv/q2h5578x21j6x0mtpglbjfw80000gn/T/AppTranslocation/0B219EB5-A549-42AB-98DB-B785371D9DD7/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:131:5: error: conflicting declaration of C function 'int atexit(void (*)(...))'
 int atexit(void (*func)()) __attribute__((weak));
     ^~~~~~
In file included from /private/var/folders/nv/q2h5578x21j6x0mtpglbjfw80000gn/T/AppTranslocation/0B219EB5-A549-42AB-98DB-B785371D9DD7/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:23:0,
                 from /Users/davidalbert/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Configuration.hpp:96,
                 from /Users/davidalbert/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Namespace.hpp:7,
                 from /Users/davidalbert/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson.hpp:15,
                 from /Users/davidalbert/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson.h:9,
                 from sketch/OpenWeatherMap.h:3,
                 from sketch/OpenWeatherMap.cpp:1:
/private/var/folders/nv/q2h5578x21j6x0mtpglbjfw80000gn/T/AppTranslocation/0B219EB5-A549-42AB-98DB-B785371D9DD7/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/stdlib.h:685:12: note: previous declaration 'int atexit(void (*)())'
 extern int atexit(void (*)(void));
            ^~~~~~
In file included from sketch/OpenWeatherMap.cpp:1:0:
OpenWeatherMap.h:38:3: error: 'time_t' does not name a type; did you mean 'size_t'?
   time_t observationTime;
   ^~~~~~
   size_t
OpenWeatherMap.h:42:3: error: 'time_t' does not name a type; did you mean 'size_t'?
   time_t sunrise;
   ^~~~~~
   size_t
OpenWeatherMap.h:44:3: error: 'time_t' does not name a type; did you mean 'size_t'?
   time_t sunset;
   ^~~~~~
   size_t
OpenWeatherMap.h:47:3: error: 'time_t' does not name a type; did you mean 'size_t'?
   time_t timezone;
   ^~~~~~
   size_t
OpenWeatherMap.h:52:3: error: 'time_t' does not name a type; did you mean 'size_t'?
   time_t observationTime;
   ^~~~~~
   size_t
sketch/OpenWeatherMap.cpp: In member function 'bool AirliftOpenWeatherMap::updateCurrent(OpenWeatherMapCurrentData&, String)':
OpenWeatherMap.cpp:131:8: error: 'OpenWeatherMapCurrentData {aka struct OpenWeatherMapCurrentData}' has no member named 'timezone'
   data.timezone = (time_t) doc["timezone"];

        ^~~~~~~~
OpenWeatherMap.cpp:131:20: error: 'time_t' was not declared in this scope
   data.timezone = (time_t) doc["timezone"];

                    ^~~~~~
sketch/OpenWeatherMap.cpp:131:20: note: suggested alternative: 'size_t'
   data.timezone = (time_t) doc["timezone"];

                    ^~~~~~
                    size_t
OpenWeatherMap.cpp:134:8: error: 'OpenWeatherMapCurrentData {aka struct OpenWeatherMapCurrentData}' has no member named 'observationTime'
   data.observationTime = (time_t) doc["dt"];

        ^~~~~~~~~~~~~~~
OpenWeatherMap.cpp:135:8: error: 'OpenWeatherMapCurrentData {aka struct OpenWeatherMapCurrentData}' has no member named 'sunrise'
   data.sunrise = (time_t) doc["sys"]["sunrise"];

        ^~~~~~~
OpenWeatherMap.cpp:136:8: error: 'OpenWeatherMapCurrentData {aka struct OpenWeatherMapCurrentData}' has no member named 'sunset'
   data.sunset = (time_t) doc["sys"]["sunset"];

        ^~~~~~
sketch/OpenWeatherMap.cpp: In member function 'bool AirliftOpenWeatherMap::updateForecast(OpenWeatherMapForecastData&, String, int)':
OpenWeatherMap.cpp:171:8: error: 'OpenWeatherMapForecastData {aka struct OpenWeatherMapForecastData}' has no member named 'observationTime'; did you mean 'observationTimeText'?
   data.observationTime = (time_t) doc["list"][day]["dt"];

        ^~~~~~~~~~~~~~~
        observationTimeText
OpenWeatherMap.cpp:171:27: error: 'time_t' was not declared in this scope
   data.observationTime = (time_t) doc["list"][day]["dt"];

                           ^~~~~~
sketch/OpenWeatherMap.cpp:171:27: note: suggested alternative: 'size_t'
   data.observationTime = (time_t) doc["list"][day]["dt"];

                           ^~~~~~
                           size_t
/Users/davidalbert/Downloads/EInk_Weather_Station 2/adafruit_epd_weather/adafruit_epd_weather.ino: In function 'bool wifi_connect()':
adafruit_epd_weather:98:8: error: 'class WiFiClass' has no member named 'setPins'
   WiFi.setPins(SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
        ^~~~~~~
adafruit_epd_weather:98:16: error: 'SPIWIFI_SS' was not declared in this scope
   WiFi.setPins(SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
                ^~~~~~~~~~
/Users/davidalbert/Downloads/EInk_Weather_Station 2/adafruit_epd_weather/adafruit_epd_weather.ino:98:16: note: suggested alternative: 'WIFI_SSID'
   WiFi.setPins(SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
                ^~~~~~~~~~
                WIFI_SSID
adafruit_epd_weather:98:28: error: 'SPIWIFI_ACK' was not declared in this scope
   WiFi.setPins(SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
                            ^~~~~~~~~~~
adafruit_epd_weather:98:41: error: 'ESP32_RESETN' was not declared in this scope
   WiFi.setPins(SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
                                         ^~~~~~~~~~~~
/Users/davidalbert/Downloads/EInk_Weather_Station 2/adafruit_epd_weather/adafruit_epd_weather.ino:98:41: note: suggested alternative: 'EPD_RESET'
   WiFi.setPins(SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
                                         ^~~~~~~~~~~~
                                         EPD_RESET
adafruit_epd_weather:98:55: error: 'ESP32_GPIO0' was not declared in this scope
   WiFi.setPins(SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
                                                       ^~~~~~~~~~~
adafruit_epd_weather:98:69: error: 'SPIWIFI' was not declared in this scope
   WiFi.setPins(SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
                                                                     ^~~~~~~
/Users/davidalbert/Downloads/EInk_Weather_Station 2/adafruit_epd_weather/adafruit_epd_weather.ino:98:69: note: suggested alternative: 'SPIF'
   WiFi.setPins(SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
                                                                     ^~~~~~~
                                                                     SPIF
Multiple libraries were found for "Adafruit_GFX.h"
 Använd: /Users/davidalbert/Documents/Arduino/libraries/Adafruit_GFX_Library
Multiple libraries were found for "Adafruit_EPD.h"
 Använd: /Users/davidalbert/Documents/Arduino/libraries/Adafruit_EPD
Multiple libraries were found for "SPI.h"
 Använd: /private/var/folders/nv/q2h5578x21j6x0mtpglbjfw80000gn/T/AppTranslocation/0B219EB5-A549-42AB-98DB-B785371D9DD7/d/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI
Multiple libraries were found for "Adafruit_NeoPixel.h"
 Använd: /Users/davidalbert/Documents/Arduino/libraries/Adafruit_NeoPixel
Multiple libraries were found for "ArduinoJson.h"
 Använd: /Users/davidalbert/Documents/Arduino/libraries/ArduinoJson
Multiple libraries were found for "WiFiNINA.h"
 Använd: /Users/davidalbert/Documents/Arduino/libraries/WiFiNINA
Oanvänd: /Users/davidalbert/Documents/Arduino/libraries/WiFiNINA-master
exit status 1
'time_t' does not name a type; did you mean 'size_t'?

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Did you include include guard in your header file?

It looks like you're building a project that was written for an ARM Cortex-M4 for an Arduino Uno. This won't work, the AVR compiler that comes with the IDE misses large parts of the C and C++ standard libraries.

Pieter