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

Function localtime_r

util/datetime/systime.cpp:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50tm* localtime_r(const time_t* clock, tm* result) {
51 tzset();
52 tm* res = localtime(clock);
53 if (res) {
54 memcpy(result, res, sizeof(tm));
55 return result;
56 }
57 return 0;
58}
59
60tm* gmtime_r(const time_t* clock, tm* result) {
61 return gmtime_s(result, clock) == 0 ? result : 0;

Callers 15

local_timeFunction · 0.85
local_timeFunction · 0.85
LocalDateTimeStringFunction · 0.85
PortableLocaltimeFunction · 0.85
dlg.cFile · 0.85
GetDateAndTimeFunction · 0.85
DateToStringFunction · 0.85
YearToStringFunction · 0.85
LocalTimeMethod · 0.85
strptimeFunction · 0.85
TTimeDataMethod · 0.85
Y_UNIT_TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

PortableLocaltimeFunction · 0.68