31 : m_timePeriod(boost::posix_time::ptime(), boost::posix_time::ptime())
36 : m_timePeriod(initialTime.getTimeInstant(), finalTime.getTimeInstant())
96 std::string begin(boost::posix_time::to_simple_string(m_timePeriod.begin()));
97 std::string end(boost::posix_time::to_simple_string(m_timePeriod.end()));
102 return std::string(begin +
"/" + end);
bool operator==(const DateTime &rhs) const
Operator ==.
bool operator!=(const DateTime &rhs) const
Operator !=.
A class to represent time instant.
virtual ~TimePeriod()
Destructor.
TimeInstant getFinalTimeInstant() const
It gets the final time instant.
A class to represent time period.
TimeInstant getInitialTimeInstant() const
It gets the initial time instant.
A class to represent time instant.
AbstractData * clone() const
It returns a clone of this object.
A base class for values that can be retrieved from the data access module.
DateTimeInstant * getInitialInstant() const
It gets the initial date time instant.
bool operator>(const DateTime &rhs) const
Operator >
bool operator<(const DateTime &rhs) const
Operator <.
A class to represent time period.
DateTimeInstant * getFinalInstant() const
It gets the final date time instant.
boost::posix_time::time_period m_timePeriod
Time period information.
std::string toString() const
It returns the time period in the ISO textual format (YYYYMMDDThhmmss/YYYYMMDDThhmmss).
An abstract class to represent an instant of date and time.