Searched refs:timeinfo (Results 1 – 4 of 4) sorted by relevance
/hal_espressif-3.6.0/examples/protocols/sntp/main/ |
D | sntp_example_main.c | 55 struct tm timeinfo; in app_main() local 57 localtime_r(&now, &timeinfo); in app_main() 59 if (timeinfo.tm_year < (2016 - 1900)) { in app_main() 91 localtime_r(&now, &timeinfo); in app_main() 92 strftime(strftime_buf, sizeof(strftime_buf), "%c", &timeinfo); in app_main() 98 localtime_r(&now, &timeinfo); in app_main() 99 strftime(strftime_buf, sizeof(strftime_buf), "%c", &timeinfo); in app_main() 143 struct tm timeinfo = { 0 }; in obtain_time() local 151 localtime_r(&now, &timeinfo); in obtain_time()
|
/hal_espressif-3.6.0/components/log/ |
D | log_freertos.c | 81 struct tm timeinfo; in esp_log_system_timestamp() local 84 localtime_r(&tv.tv_sec, &timeinfo); in esp_log_system_timestamp() 89 timeinfo.tm_hour, in esp_log_system_timestamp() 90 timeinfo.tm_min, in esp_log_system_timestamp() 91 timeinfo.tm_sec, in esp_log_system_timestamp()
|
/hal_espressif-3.6.0/components/newlib/test/ |
D | test_time.c | 498 struct tm timeinfo = { 0 }; variable 501 localtime_r(&now, &timeinfo); 503 time_t t = mktime(&timeinfo); 509 strftime(strftime_buf, sizeof(strftime_buf), "%c", &timeinfo); 511 TEST_ASSERT_EQUAL(timeinfo.tm_year, year - 1900); 529 const char* time_str2 = asctime(&timeinfo);
|
/hal_espressif-3.6.0/docs/en/api-reference/system/ |
D | system_time.rst | 73 struct tm timeinfo; 80 localtime_r(&now, &timeinfo); 81 strftime(strftime_buf, sizeof(strftime_buf), "%c", &timeinfo);
|