| 23 | } |
| 24 | |
| 25 | static 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 | |
| 34 | Recorder::Recorder(CopyOperation op) |
| 35 | { |