TimeLib.h or NTPClient.h

no.
ESP32 and ESP8266 have their own time.h (small t) implementation. You don't need a 3rd party library for NTP on these microcontrollers as it is already part of the platform package (part of the ESP core).

here I have a short summary

and

1 Like