C++获取当前时间

1170阅读 0评论2015-04-15 fender0107401
分类:HTML5

using namespace std;
using namespace boost::posix_time;

boost::posix_time::ptime current_date_time = boost::posix_time::microsec_clock::local_time();
std::string current_date_time_string = to_simple_string(current_date_time);
std::cout << current_date_time_string << std::endl;


上一篇:Debian Fcitx字体设置。
下一篇:Boost ASIO客户端断线。