31 : m_datePeriod(boost::gregorian::date(), boost::gregorian::date())
36 : m_datePeriod(initialDate.getDate(), finalDate.getDate())
46 : m_datePeriod(begin, end)
52 return Date(m_datePeriod.begin());
57 return Date(m_datePeriod.end());
62 return new Date(m_datePeriod.begin());
67 return new Date(m_datePeriod.end());
101 return boost::gregorian::to_simple_string(m_datePeriod);
DateTimeInstant * getFinalInstant() const
It gets the final date time instant.
bool operator!=(const DateTime &rhs) const
Operator !=.
Date getInitialDate() const
It gets the initial date.
bool operator==(const DateTime &rhs) const
Operator ==.
A class to represent date period.
AbstractData * clone() const
It returns a clone of this object.
A base class for date data types.
bool operator<(const DateTime &rhs) const
Operator <.
A base class for values that can be retrieved from the data access module.
boost::gregorian::date_period m_datePeriod
The internal date period information.
DateTimeInstant * getInitialInstant() const
It gets the initial date time instant.
bool operator>(const DateTime &rhs) const
Operator >
virtual ~DatePeriod()
Destructor.
A class to represent date period based on the Gregorian Calendar.
Date getFinalDate() const
It gets the final date.
std::string toString() const
It returns the date period in the ISO textual format (YYYYMMDDTYYYYMMDD).
An abstract class to represent an instant of date and time.
A base class for date data types.