A class to represent time instant with time zone. More...
#include <TimeInstantTZ.h>
Public Member Functions | |
| AbstractData * | clone () const |
| It returns a clone of this object. | |
| Date | getDate () const |
| It returns the date associated to time instant. | |
| DateTimeType | getDateTimeType () const |
| It returns the subtype of the date and time type. | |
| TimeDuration | getTime () const |
| It returns the time duration associated to time instant. | |
| boost::local_time::local_date_time & | getTimeInstantTZ () |
| It returns the boost time instant with time zone type. | |
| const boost::local_time::local_date_time & | getTimeInstantTZ () const |
| It returns the boost time instant with time zone type. | |
| int | getTypeCode () const |
| It returns the data type code associated to date and time values: DATETIME_TYPE. | |
| bool | operator!= (const DateTime &rhs) const |
| Operator !=. | |
| long | operator- (const TimeInstantTZ &rhs) const |
| Operator -. | |
| bool | operator< (const DateTime &rhs) const |
| Operator <. | |
| bool | operator== (const DateTime &rhs) const |
| Operator ==. | |
| bool | operator> (const DateTime &rhs) const |
| Operator > | |
| TimeInstantTZ (const boost::local_time::local_date_time &t) | |
| Constructor. | |
| std::string | toString () const |
| It returns the time instant with time zone in the ISO textual format (YYYYMMDDThhmmss?hhmm). | |
| virtual | ~TimeInstantTZ () |
| Constructor. | |
Protected Attributes | |
| boost::local_time::local_date_time | m_timeInstantTZ |
| Time instant with time zone information. | |
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.
Definition at line 56 of file TimeInstantTZ.h.
| te::dt::TimeInstantTZ::TimeInstantTZ | ( | const boost::local_time::local_date_time & | t | ) |
|
virtual |
Constructor.
|
virtual |
| Date te::dt::TimeInstantTZ::getDate | ( | ) | const |
It returns the date associated to time instant.
|
inlinevirtual |
It returns the subtype of the date and time type.
Implements te::dt::DateTime.
Definition at line 159 of file TimeInstantTZ.h.
References te::dt::TIME_INSTANT_TZ.
| TimeDuration te::dt::TimeInstantTZ::getTime | ( | ) | const |
It returns the time duration associated to time instant.
|
inline |
It returns the boost time instant with time zone type.
Definition at line 79 of file TimeInstantTZ.h.
References m_timeInstantTZ.
|
inline |
It returns the boost time instant with time zone type.
Definition at line 72 of file TimeInstantTZ.h.
References m_timeInstantTZ.
Referenced by te::pgis::Internal2TimeStampTZ().
|
inlinevirtualinherited |
It returns the data type code associated to date and time values: DATETIME_TYPE.
Implements te::dt::AbstractData.
Definition at line 103 of file DateTime.h.
References te::dt::DATETIME_TYPE.
|
virtual |
Operator !=.
| rhs | The time instant to be compared. |
Implements te::dt::DateTime.
| long te::dt::TimeInstantTZ::operator- | ( | const TimeInstantTZ & | rhs | ) | const |
Operator -.
| rhs | The right-hand-side time instant. |
References TimeInstantTZ().
|
virtual |
Operator <.
| rhs | The right-hand-side time instant to be compared. |
Implements te::dt::DateTime.
|
virtual |
Operator ==.
| rhs | The time instant to be compared. |
Implements te::dt::DateTime.
|
virtual |
Operator >
| rhs | The right-hand-side time instant to be compared. |
Implements te::dt::DateTime.
|
virtual |
It returns the time instant with time zone in the ISO textual format (YYYYMMDDThhmmss?hhmm).
Implements te::dt::AbstractData.
|
protected |
Time instant with time zone information.
Definition at line 166 of file TimeInstantTZ.h.
Referenced by getTimeInstantTZ(), and getTimeInstantTZ().