MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / GetDateText

Function GetDateText

DebugView++Lib/Conversions.cpp:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24std::string GetDateText(const SYSTEMTIME& st)
25{
26 int size = GetDateFormatA(LOCALE_USER_DEFAULT, 0, &st, nullptr, nullptr, 0);
27 std::vector<char> buf(size);
28 GetDateFormatA(LOCALE_USER_DEFAULT, 0, &st, nullptr, buf.data(), size);
29 return std::string(buf.data(), size - 1);
30}
31
32std::string GetDateText(const FILETIME& ft)
33{

Callers 1

GetColumnTextMethod · 0.85

Calls 3

FileTimeToSystemTimeFunction · 0.85
FileTimeToLocalFileTimeFunction · 0.85
dataMethod · 0.80

Tested by

no test coverage detected