55 boost::posix_time::time_duration td(m_timeInstantTZ - rhs.
m_timeInstantTZ);
56 return td.total_seconds();
66 std::string t(boost::posix_time::to_simple_string(m_timeInstantTZ.utc_time()));
69 t += m_timeInstantTZ.zone()->to_posix_string();
bool operator==(const DateTime &rhs) const
Operator ==.
bool operator<(const DateTime &rhs) const
Operator <.
bool operator>(const DateTime &rhs) const
Operator >
virtual ~TimeInstantTZ()
Constructor.
AbstractData * clone() const
It returns a clone of this object.
A base class for values that can be retrieved from the data access module.
A class to represent time instant with time zone.
long operator-(const TimeInstantTZ &rhs) const
Operator -.
boost::local_time::local_date_time m_timeInstantTZ
Time instant with time zone information.
bool operator!=(const DateTime &rhs) const
Operator !=.
A class to represent time instant with time zone.
std::string toString() const
It returns the time instant with time zone in the ISO textual format (YYYYMMDDThhmmss±hhmm).