A class to represent time instant with time zone.
More...
#include <TimeInstantTZ.h>
A class to represent time instant with time zone.
A time instant is a point on the continuous time axis. A time instant with time zone is composed of a date that uses the Gregorian calendar and of a time with an associated time zone. Internally, it uses the datetime boost library to represent time instant with time zone, by using the data type boost::local_time::local_date_time.
- See also
- DateTime, Date, DatePeriod, DateDuration, TimeInstant, TimePeriod, TimeDuration, TimePeriodTZ
Definition at line 52 of file TimeInstantTZ.h.
te::dt::TimeInstantTZ::TimeInstantTZ |
( |
const boost::local_time::local_date_time & |
t | ) |
|
|
inline |
Constructor.
- Parameters
-
t | A time instant with time zone. |
Definition at line 61 of file TimeInstantTZ.h.
virtual te::dt::TimeInstantTZ::~TimeInstantTZ |
( |
| ) |
|
|
virtual |
DateTimeType te::dt::TimeInstantTZ::getDateTimeType |
( |
| ) |
const |
|
inlinevirtual |
const boost::local_time::local_date_time& te::dt::TimeInstantTZ::getTimeInstantTZ |
( |
| ) |
const |
|
inline |
It returns the boost time instant with time zone type.
- Returns
- The boost time instant with time zone type.
Definition at line 71 of file TimeInstantTZ.h.
boost::local_time::local_date_time& te::dt::TimeInstantTZ::getTimeInstantTZ |
( |
| ) |
|
|
inline |
It returns the boost time instant with time zone type.
- Returns
- The boost time instant with time zone type.
Definition at line 78 of file TimeInstantTZ.h.
int te::dt::DateTime::getTypeCode |
( |
| ) |
const |
|
inlinevirtualinherited |
It returns the data type code associated to date and time values: DATETIME_TYPE.
- Returns
- The data type code associated to the date and time values: DATETIME_TYPE.
Implements te::dt::AbstractData.
Definition at line 103 of file DateTime.h.
References te::dt::DATETIME_TYPE.
bool te::dt::TimeInstantTZ::operator!= |
( |
const DateTime & |
rhs | ) |
const |
|
virtual |
Operator !=.
- Parameters
-
rhs | The time instant to be compared. |
- Returns
- It returns true if the two time instants are not equal. Otherwise, it returns false.
Implements te::dt::DateTime.
long te::dt::TimeInstantTZ::operator- |
( |
const TimeInstantTZ & |
rhs | ) |
const |
Operator -.
- Parameters
-
rhs | The right-hand-side time instant. |
- Returns
- It returns the number of seconds between the two time instants.
bool te::dt::TimeInstantTZ::operator< |
( |
const DateTime & |
rhs | ) |
const |
|
virtual |
Operator <.
- Parameters
-
rhs | The right-hand-side time instant to be compared. |
- Returns
- It returns true if the right-hand-side time instant is greater than the lefth side one. Otherwise, it returns false.
Implements te::dt::DateTime.
bool te::dt::TimeInstantTZ::operator== |
( |
const DateTime & |
rhs | ) |
const |
|
virtual |
Operator ==.
- Parameters
-
rhs | The time instant to be compared. |
- Returns
- It returns true if the two time instants are equal. Otherwise, it returns false.
Implements te::dt::DateTime.
bool te::dt::TimeInstantTZ::operator> |
( |
const DateTime & |
rhs | ) |
const |
|
virtual |
Operator >
- Parameters
-
rhs | The right-hand-side time instant to be compared. |
- Returns
- It returns true if the right-hand-side time instant is less than the lefth side one. Otherwise, it returns false.
Implements te::dt::DateTime.
std::string te::dt::TimeInstantTZ::toString |
( |
| ) |
const |
|
virtual |
It returns the time instant with time zone in the ISO textual format (YYYYMMDDThhmmss±hhmm).
- Returns
- The time instant with time zone in the ISO textual format (YYYYMMDDThhmmss±hhmm).
Implements te::dt::AbstractData.
boost::local_time::local_date_time te::dt::TimeInstantTZ::m_timeInstantTZ |
|
protected |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/datatype/TimeInstantTZ.h