fbiego / ESP32Time

An Arduino library for setting and retrieving internal RTC time on ESP32 boards
MIT License
212 stars 36 forks source link

Time offset from UTC #17

Closed Lazurx closed 2 years ago

Lazurx commented 2 years ago

Hello. Can I somehow apply the time offset (for example +2h) to returned values? My code syncs with NTP server on startup with UTC epoch (its necessary for metrics posting) but other functions will synchronised to my local time +2 (also it will be displayed on the screen). I could getEpoch() and add offset to it but then i need to somehow convert it to HH:MM:SS format. I'm newbie in coding maybe there's a way to achieve this with this library (I dont want to use another library, i want to keep it simple). Best regards.