| 937 | } |
| 938 | |
| 939 | tm* 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 | |
| 950 | inline ImPlotTime MkTime(struct tm *ptm) { |
| 951 | if (GetStyle().UseLocalTime) |