| 1234567891011121314151617181920 |
- #pragma once
- #include <boost/date_time/posix_time/posix_time.hpp>
- #include <boost/date_time/gregorian/gregorian.hpp>
- #include <boost/date_time/gregorian/greg_duration_types.hpp>
- #include "Log.h"
- using namespace boost::posix_time;
- using namespace boost::gregorian;
- class Util
- {
- public:
- static std::string CurTime();
- static date CurData();
- private :
- static std::string __FormatTime(ptime time);
- static ptime __getCurTime();
- };
|