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

Function mktime

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

Source from the content-addressed store, hash-verified

231RTM_EXPORT(localtime);
232
233time_t mktime(struct tm * const t)
234{
235 time_t timestamp;
236
237 timestamp = timegm(t);
238#if defined(RT_LIBC_USING_LIGHT_TZ_DST)
239 timestamp = timestamp - rt_tz_get();
240#else
241 timestamp = timestamp - 0U;
242#endif /* RT_LIBC_USING_LIGHT_TZ_DST */
243 return timestamp;
244}
245RTM_EXPORT(mktime);
246
247char* asctime_r(const struct tm *t, char *buf)

Callers 15

alarm_wakeupFunction · 0.85
set_dateFunction · 0.85
set_timeFunction · 0.85
dateFunction · 0.85
iso9660_convert_unixtimeFunction · 0.85
rtc_alarm_setFunction · 0.85
rtc_device_writeFunction · 0.85
_get_rtc_timestampFunction · 0.85
get_rtc_timestampFunction · 0.85
get_rtc_timestampFunction · 0.85
rtc_controlFunction · 0.85

Calls 2

timegmFunction · 0.85
rt_tz_getFunction · 0.85

Tested by

no test coverage detected