I am getting a datetime string from a webserver that is in ISO 8601 format:
2019-09-16T04:09:28.694479-04:00
I need to get it in to a format that rtclib can understand.
Here is an example of what that would look like:
if (! rtc.initialized()) {
Serial.println("RTC is NOT running!");
// following line sets the RTC to the date & time this sketch was compiled
rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
I'm not sure how to accomplish this. Any help would be appreciated.