#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/format.hpp>
std::cout << boost::format("%04d") % boost::posix_time::microsec_clock::
universal_time().date().year() << "/";
std::cout << boost::format("%02d") % boost::posix_time::microsec_clock::
universal_time().date().month().as_number()<<"/";
std::cout << boost::format("%02d") % boost::posix_time::microsec_clock::
universal_time().date().day() <<",";
std::cout << boost::format("%02d") % boost::posix_time::microsec_clock::
universal_time().time_of_day().hours() <<":";
std::cout << boost::format("%02d") % boost::posix_time::microsec_clock::
universal_time().time_of_day().minutes() <<",";