Home
last modified time | relevance | path

Searched refs:timeinfo (Results 1 – 4 of 4) sorted by relevance

/hal_espressif-3.6.0/examples/protocols/sntp/main/
Dsntp_example_main.c55 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/
Dlog_freertos.c81 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/
Dtest_time.c498 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/
Dsystem_time.rst73 struct tm timeinfo;
80 localtime_r(&now, &timeinfo);
81 strftime(strftime_buf, sizeof(strftime_buf), "%c", &timeinfo);