linux版本中间件

Util.h 418B

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. using namespace boost::posix_time;
  6. using namespace boost::gregorian;
  7. class Util
  8. {
  9. public:
  10. static std::string CurTime();
  11. static date CurData();
  12. private:
  13. static std::string __FormatTime(ptime time);
  14. static ptime __getCurTime();
  15. };