#include
std::string strTime = boost::gregorian::to_iso_string(boost::gregorian::day_clock::local_day());
time = atoi(strTime.c_str());
AfwInfo << "send --" << time;
输出:年月日
#include
std::string strTime = boost::posix_time::to_iso_string(boost::posix_time::second_clock::local_time());
AfwInfo << "send --" << strTime;