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. More... | |
| DateTimeType | getDateTimeType () const |
| It returns the subtype of the date and time type. More... | |
| const boost::local_time::local_date_time & | getTimeInstantTZ () const |
| It returns the boost time instant with time zone type. More... | |
| boost::local_time::local_date_time & | getTimeInstantTZ () |
| It returns the boost time instant with time zone type. More... | |
| int | getTypeCode () const |
| It returns the data type code associated to date and time values: DATETIME_TYPE. More... | |
| bool | operator!= (const DateTime &rhs) const |
| Operator !=. More... | |
| long | operator- (const TimeInstantTZ &rhs) const |
| Operator -. More... | |
| bool | operator< (const DateTime &rhs) const |
| Operator <. More... | |
| bool | operator== (const DateTime &rhs) const |
| Operator ==. More... | |
| bool | operator> (const DateTime &rhs) const |
| Operator > More... | |
| TimeInstantTZ (const boost::local_time::local_date_time &t) | |
| Constructor. More... | |
| std::string | toString () const |
| It returns the time instant with time zone in the ISO textual format (YYYYMMDDThhmmss?hhmm). More... | |
| virtual | ~TimeInstantTZ () |
| Constructor. More... | |
Protected Attributes | |
| boost::local_time::local_date_time | m_timeInstantTZ |
| Time instant with time zone information. More... | |
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 52 of file TimeInstantTZ.h.
| te::dt::TimeInstantTZ::TimeInstantTZ | ( | const boost::local_time::local_date_time & | t | ) |
Constructor.
| t | A time instant with time zone. |
Definition at line 81 of file TimeInstantTZ.cpp.
References ~TimeInstantTZ().
Referenced by clone().
|
virtualdefault |
Constructor.
Referenced by TimeInstantTZ().
|
virtual |
It returns a clone of this object.
Implements te::dt::AbstractData.
Definition at line 61 of file TimeInstantTZ.cpp.
References TimeInstantTZ().
|
inlinevirtual |
It returns the subtype of the date and time type.
Implements te::dt::DateTime.
Definition at line 141 of file TimeInstantTZ.h.
References te::dt::TIME_INSTANT_TZ.
|
inline |
It returns the boost time instant with time zone type.
Definition at line 68 of file TimeInstantTZ.h.
Referenced by te::ado::GetFormattedDateTime(), and te::pgis::Internal2TimeStampTZ().
|
inline |
It returns the boost time instant with time zone type.
Definition at line 75 of file TimeInstantTZ.h.
References operator!=(), operator<(), operator==(), and operator>().
|
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.
Referenced by te::dt::AssertBoolean(), te::dt::AssertInt32(), te::dt::AssertString(), te::dt::AssertUInt32(), te::gm::GeometryToByteArrayConverter(), and te::gm::GeometryToStringConverter().
Operator !=.
| rhs | The time instant to be compared. |
Implements te::dt::DateTime.
Definition at line 37 of file TimeInstantTZ.cpp.
References m_timeInstantTZ.
| long te::dt::TimeInstantTZ::operator- | ( | const TimeInstantTZ & | rhs | ) | const |
Operator -.
| rhs | The right-hand-side time instant. |
Definition at line 55 of file TimeInstantTZ.cpp.
References m_timeInstantTZ, and td.
Operator <.
| rhs | The right-hand-side time instant to be compared. |
Implements te::dt::DateTime.
Definition at line 43 of file TimeInstantTZ.cpp.
References m_timeInstantTZ.
Operator ==.
| rhs | The time instant to be compared. |
Implements te::dt::DateTime.
Definition at line 31 of file TimeInstantTZ.cpp.
References m_timeInstantTZ.
Operator >
| rhs | The right-hand-side time instant to be compared. |
Implements te::dt::DateTime.
Definition at line 49 of file TimeInstantTZ.cpp.
References m_timeInstantTZ.
|
virtual |
It returns the time instant with time zone in the ISO textual format (YYYYMMDDThhmmss?hhmm).
Implements te::dt::AbstractData.
Definition at line 66 of file TimeInstantTZ.cpp.
References m_timeInstantTZ.
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_SUITE().
|
protected |
Time instant with time zone information.
Definition at line 148 of file TimeInstantTZ.h.
Referenced by operator!=(), operator-(), operator<(), operator==(), operator>(), and toString().