I want understand how to work std::put_time, and how can I get date stamp in \"YYYY/MM/DD HH:MM:SS\" format. Now I write somthing like this:
std::chrono::tim
As mentioned 1 hour ago here, cppreference has good documentation on this: http://en.cppreference.com/w/cpp/io/manip/put_time
Specifically, you can get the format you described using the following format string:
std::cout << std::put_time(std::localtime(&now_c), "%Y/%m/%d %T")
See this reference. It's actually the same as for the old strftime function, with some extra formats thrown in.