```cpp #include <ctime> void getLocaltime(struct tm <ime) { time_t t; time(&t); localtime_r(&t, <ime); } ``` ```console <source>:7:5: warning: no header providing "localtime_r" is directly included [misc-include-cleaner] 2 | 3 | void getLocaltime(struct tm <ime) 4 | { 5 | time_t t; 6 | time(&t); 7 | localtime_r(&t, <ime); | ^ 1 warning generated. ``` https://godbolt.org/z/Txehvrs8M https://en.cppreference.com/w/c/chrono/localtime