Add System::get_current_date_time()
MODIFY
include/vcpkg_System.h
include/vcpkg_System.h
namespace vcpkg::System
{
+ tm get_current_date_time();
+
fs::path get_exe_path_of_current_process();
struct ExitCodeAndOutput

MODIFY
src/vcpkg_System.cpp
src/vcpkg_System.cpp
namespace vcpkg::System
{
+ tm get_current_date_time()
+ {
+ using std::chrono::system_clock;
+ std::time_t now_time = system_clock::to_time_t(system_clock::now());
+ tm parts;
+ localtime_s(&parts, &now_time);
+ return parts;
+ }
+
fs::path get_exe_path_of_current_process()
{
wchar_t buf[_MAX_PATH];

Add System::get_current_date_time()