3#include <boost/date_time/posix_time/posix_time.hpp>
29 boost::posix_time::ptime timestamp;
39 DLL std::string
rfc3339(
void)
const;
58 DLL
Time(std::string value);
68 DLL
Time(boost::posix_time::ptime value);
92 inline bool is_null(
void)
const {
return _null; }
100 inline void set_null(
bool _null =
true) { this->_null = _null; }
111 static DLL boost::posix_time::ptime
utc_now(
void);
143 DLL std::vector<unsigned char>
serialize(
void)
const;
friend DLL bool operator<=(const Time &t1, const Time &t2)
Friend Operator <=.
bool is_null(void) const
Is Null?
DLL Time()
Uninitialized Constructor.
void set_null(bool _null=true)
Set null.
DLL std::string rfc3339(void) const
RFC3339 representation.
friend DLL bool operator>=(const Time &t1, const Time &t2)
Friend Operator >=.
DLL std::vector< unsigned char > serialize(void) const
Bytewise serialization.
static DLL boost::posix_time::ptime utc_now(void)
Current Time.
DLL bool operator<=(const Time &t1, const Time &t2)
LEQ Time Operator.
DLL bool operator>=(const Time &t1, const Time &t2)
GEQ Time Operator.