boost1.62+openssl1.1.1g+C++11跨平台部分时间格式转换
std::string current_date_time()
{
std::ostringstream ss;
ss.imbue(std::locale(ss.getloc(), new boost::posix_time::time_facet("%Y-%m-%d %H:%M:%S")));
ss << boost::posix_time::second_clock::local_time();
retur...
原创
2021-01-12 16:56:38 ·
223 阅读 ·
0 评论