linux版本中间件

Util.h 435B

1234567891011121314151617181920
  1. #pragma once
  2. #include <boost/date_time/posix_time/posix_time.hpp>
  3. #include <boost/date_time/gregorian/gregorian.hpp>
  4. #include <boost/date_time/gregorian/greg_duration_types.hpp>
  5. #include "Log.h"
  6. using namespace boost::posix_time;
  7. using namespace boost::gregorian;
  8. class Util
  9. {
  10. public:
  11. static std::string CurTime();
  12. static date CurData();
  13. private :
  14. static std::string __FormatTime(ptime time);
  15. static ptime __getCurTime();
  16. };