Searched refs:strftime_buf (Results 1 – 3 of 3) sorted by relevance
/hal_espressif-3.6.0/examples/protocols/sntp/main/ |
D | sntp_example_main.c | 86 char strftime_buf[64]; in app_main() local 92 strftime(strftime_buf, sizeof(strftime_buf), "%c", &timeinfo); in app_main() 93 ESP_LOGI(TAG, "The current date/time in New York is: %s", strftime_buf); in app_main() 99 strftime(strftime_buf, sizeof(strftime_buf), "%c", &timeinfo); in app_main() 100 ESP_LOGI(TAG, "The current date/time in Shanghai is: %s", strftime_buf); in app_main()
|
/hal_espressif-3.6.0/components/newlib/test/ |
D | test_time.c | 486 char strftime_buf[64]; variable 509 strftime(strftime_buf, sizeof(strftime_buf), "%c", &timeinfo); 510 ESP_LOGI("TAG", "Test time() and localtime_r(). Time: %s", strftime_buf); 512 TEST_ASSERT_EQUAL_MEMORY(origin_buffer, strftime_buf, strlen(origin_buffer)); 515 strftime(strftime_buf, sizeof(strftime_buf), "%c", tm2); 516 ESP_LOGI("TAG", "Test localtime(). Time: %s", strftime_buf); 518 TEST_ASSERT_EQUAL_MEMORY(origin_buffer, strftime_buf, strlen(origin_buffer)); 521 strftime(strftime_buf, sizeof(strftime_buf), "%c", gm); 522 ESP_LOGI("TAG", "Test gmtime(). Time: %s", strftime_buf); 523 TEST_ASSERT_EQUAL_MEMORY(origin_buffer, strftime_buf, strlen(origin_buffer));
|
/hal_espressif-3.6.0/docs/en/api-reference/system/ |
D | system_time.rst | 72 char strftime_buf[64]; 81 strftime(strftime_buf, sizeof(strftime_buf), "%c", &timeinfo); 82 ESP_LOGI(TAG, "The current date/time in Shanghai is: %s", strftime_buf);
|