neptune2 / simpleDSTadjust

OBSOLETE: esp8266 Arduino base code NTP, TimeZone and DST are now fixed
https://github.com/esp8266/Arduino/blob/master/libraries/esp8266/examples/NTP-TZ-DST/
22 stars 19 forks source link

Added support for passing raw timestamps to time() #7

Open Duckle29 opened 4 years ago

Duckle29 commented 4 years ago

In a few projects I've either received timestamps over ESP-NOW, or from onboard RTCs, and can't or won't connect to wifi for NTP. To support that time() needs an option that doesn't rely on the espressif time functions.

The change should be drop in, and shouldn't alter behavior for existing code.