MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / localtime_r

Function localtime_r

components/libc/compilers/common/ctime.c:214–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212RTM_EXPORT(gmtime);
213
214struct tm* localtime_r(const time_t* t, struct tm* r)
215{
216 time_t local_tz;
217#if defined(RT_LIBC_USING_LIGHT_TZ_DST)
218 local_tz = *t + rt_tz_get();
219#else
220 local_tz = *t + 0U;
221#endif /* RT_LIBC_USING_LIGHT_TZ_DST */
222 return gmtime_r(&local_tz, r);
223}
224RTM_EXPORT(localtime_r);
225
226struct tm* localtime(const time_t* t)

Callers 11

alarm_updateFunction · 0.85
alarm_setupFunction · 0.85
rt_alarm_startFunction · 0.85
set_dateFunction · 0.85
set_timeFunction · 0.85
ulog_head_formaterFunction · 0.85
localtimeFunction · 0.85
ctime_rFunction · 0.85
test_rtc_alarmFunction · 0.85
set_rtc_time_stampFunction · 0.85
hpm_rtc_get_alarmFunction · 0.85

Calls 2

rt_tz_getFunction · 0.85
gmtime_rFunction · 0.70

Tested by 1

test_rtc_alarmFunction · 0.68