MCPcopy Create free account
hub / github.com/catboost/catboost / strptime

Function strptime

util/datetime/strptime.cpp:613–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611}
612
613char* strptime(const char* buf, const char* fmt, struct tm* tm)
614{
615 char* ret;
616 int gmt;
617
618 gmt = 0;
619 ret = _strptime(buf, fmt, tm, &gmt);
620 if (ret && gmt) {
621 time_t t = timegm(tm);
622 localtime_r(&t, tm);
623 }
624
625 return (ret);
626}
627#endif //_win32_

Callers 3

Y_UNIT_TESTFunction · 0.70
ParseDateFunction · 0.50
str2dateFunction · 0.50

Calls 3

_strptimeFunction · 0.85
timegmFunction · 0.85
localtime_rFunction · 0.85

Tested by

no test coverage detected