31 : m_timePeriodTZ(initialTime.getTimeInstantTZ(), finalTime.getTimeInstantTZ())
91 std::string begin(boost::posix_time::to_simple_string(m_timePeriodTZ.begin().utc_time()));
94 begin += m_timePeriodTZ.begin().zone()->to_posix_string();
96 std::string end(boost::posix_time::to_simple_string(m_timePeriodTZ.last().utc_time()));
99 end += m_timePeriodTZ.begin().zone()->to_posix_string();
101 return begin +
"/" + end;
virtual ~TimePeriodTZ()
Destructor.
TimeInstantTZ getInitialTimeInstant() const
It gets the initial time instant.
bool operator>(const DateTime &rhs) const
Operator >
std::string toString() const
It returns the time period with time zone in the ISO textual format (YYYYMMDDThhmmss±hhmm/YYYYMMDDThh...
DateTimeInstant * getInitialInstant() const
It gets the initial date time instant.
bool operator==(const DateTime &rhs) const
Operator ==.
bool operator!=(const DateTime &rhs) const
Operator !=.
TimeInstantTZ getFinalTimeInstant() const
It gets the final time instant.
A base class for values that can be retrieved from the data access module.
TimePeriodTZ(const TimeInstantTZ &initialTime, const TimeInstantTZ &finalTime)
Constructor.
A class to represent time instant with time zone.
A class to represent time period with time zone.
boost::local_time::local_time_period m_timePeriodTZ
Time period with time zone information.
A class to represent time period with time zone.
AbstractData * clone() const
It returns a clone of this object.
bool operator<(const DateTime &rhs) const
Operator <.
A class to represent time instant with time zone.
DateTimeInstant * getFinalInstant() const
It gets the final date time instant.
An abstract class to represent an instant of date and time.