35 : m_timeInstant(d.getDate(), td.getTimeDuration())
46 m_timeInstant = boost::posix_time::from_iso_string(dtime);
51 boost::posix_time::time_duration td = m_timeInstant.time_of_day();
82 boost::posix_time::time_duration td(m_timeInstant - rhs.
m_timeInstant);
84 return td.total_seconds();
94 return boost::posix_time::to_simple_string(m_timeInstant);
bool operator>(const DateTime &rhs) const
Operator >
boost::posix_time::ptime m_timeInstant
The internal time instant information.
bool operator!=(const DateTime &rhs) const
Operator !=.
std::string toString() const
It returns the time instant in the ISO textual format (YYYYMMDDTHHMMSS,fffffffff) where T is the date...
virtual ~TimeInstant()
Constructor.
bool operator==(const DateTime &rhs) const
Operator ==.
A class to represent time instant.
AbstractData * clone() const
It returns a clone of this object.
A base class for date data types.
A class to represent time instant.
A base class for values that can be retrieved from the data access module.
A class to represent time duration with nano-second/micro-second resolution.
TimeDuration getTime() const
It returns the time duration associated to time instant.
long operator-(const TimeInstant &rhs) const
Operator -.
bool operator<(const DateTime &rhs) const
Operator <.
TimeInstant()
Constructor.