MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / GetTimeString

Function GetTimeString

FastCopyShellExtension/Recorder.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25static auto GetTimeString()
26{
27 //std::chrono::current_zone() gives exceptions on Windows 10, 17763 with MSVC cl.exe version 19.36.32535
28 //auto ret = std::format(L"{}", std::chrono::zoned_time{ std::chrono::current_zone(), std::chrono::system_clock::now() }.get_local_time());
29 auto ret = std::format(L"{}", std::chrono::system_clock::now());
30 std::ranges::replace_if(ret, [](auto c) {return c == L'.' || c == L':'; }, L'-');
31 return ret;
32}
33
34Recorder::Recorder(CopyOperation op)
35{

Callers 1

GetRecordFilePathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected