如何使用Boost库以dd/mm/yyyy H格式打印当前日期?
是)我有的:
boost::posix_time::ptime now = boost::posix_time::second_clock::local_time();
cout << boost::posix_time::to_simple_string(now).c_str();
2009-Dec-14 23:31:40
Run Code Online (Sandbox Code Playgroud)
但我想要:
2009年12月14日23:31:40