4 #ifndef FIRE_DATA_DATETIME_HPP_INCLUDED
5 #define FIRE_DATA_DATETIME_HPP_INCLUDED
7 #include <QtCore/QDateTime>
8 #include <boost/thread/mutex.hpp>
9 #include <fire/gear/threading/types.hpp>
37 explicit DateTime(
long long const & time);
60 void setTime(
double const & time);
66 std::string
format(std::string
const & pattern =
"yyyy-MM-dd hh:mm:ss")
const;
73 void parse(
const std::string &txt, std::string
const & pattern =
"yyyy-MM-dd hh:mm:ss");
80 mutable boost::mutex _mtx;
long long getTime() const
void setTime(double const &time)
Definition: DateTimeSh.hpp:21
std::string format(std::string const &pattern="yyyy-MM-dd hh:mm:ss") const
Definition: DateTime.hpp:25
void parse(const std::string &txt, std::string const &pattern="yyyy-MM-dd hh:mm:ss")