system_clock의 time_point를 string으로 변경하기 위한 코드 예제
#include <iostream>
#include <iomanip>
#include <chrono>
#include <sstream>
using namespace std;
using namespace std::chrono;
int main() {
auto tp = system_clock::now();
auto tt = system_clock::to_time_t(tp);
wstringstream stm;
stm << std::put_time(localtime(&tt), L"%Y-%m-%d %H:%M:%S");
wcout << stm.str() << endl;
return 0;
}