TimeLib.h or NTPClient.h

that depends on the micrcontroller you are using.
For example for the ESP32 or ESP8266 you should use the time.h which comes with the platform package (core).

1 Like