MCPcopy Create free account
hub / github.com/clementgallet/libTAS / GetLocTime

Function GetLocTime

src/external/imgui/implot.cpp:939–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937}
938
939tm* GetLocTime(const ImPlotTime& t, tm* ptm) {
940#ifdef _WIN32
941 if (localtime_s(ptm, &t.S) == 0)
942 return ptm;
943 else
944 return nullptr;
945#else
946 return localtime_r(&t.S, ptm);
947#endif
948}
949
950inline ImPlotTime MkTime(struct tm *ptm) {
951 if (GetStyle().UseLocalTime)

Callers 1

GetTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected