MCPcopy Create free account
hub / github.com/eggert/tz / timelocal

Function timelocal

localtime.c:2960–2966  ·  view source on GitHub ↗

This function is obsolescent and may disappear in future releases. Callers can instead use mktime. */

Source from the content-addressed store, hash-verified

2958/* This function is obsolescent and may disappear in future releases.
2959 Callers can instead use mktime. */
2960time_t
2961timelocal(struct tm *tmp)
2962{
2963 if (tmp != NULL)
2964 tmp->tm_isdst = -1; /* in case it wasn't initialized */
2965 return mktime(tmp);
2966}
2967#endif
2968
2969#if defined TM_GMTOFF || !USE_TIMEX_T

Callers

nothing calls this directly

Calls 1

mktimeFunction · 0.85

Tested by

no test coverage detected