add configTime, getLocalTime and support for time in Print
example: ```cpp //done once on WiFi init configTime(-7200, 3600, "pool.ntp.org"); //get local time struct tm timeinfo; if(!getLocalTime(&timeinfo)){ Serial.println("Failed to obtain time"); return; } //print time Serial.println(&timeinfo); //print time with different format Serial.println(&timeinfo, "%A, %B %d %Y %H:%M:%S"); ``` fixes: https://github.com/espressif/arduino-esp32/issues/29
Showing
cores/esp32/esp32-hal-time.c
0 → 100644
想要评论请 注册 或 登录