Go to the documentation of this file.
26 #ifndef __TERRALIB_DATATYPE_INTERNAL_TIMEINSTANT_H
27 #define __TERRALIB_DATATYPE_INTERNAL_TIMEINSTANT_H
35 #include <boost/date_time/posix_time/posix_time.hpp>
92 const boost::posix_time::ptime&
getTimeInstant()
const {
return m_timeInstant; }
195 #endif // __TERRALIB_DATATYPE_INTERNAL_TIMEINSTANT_H
boost::posix_time::ptime m_timeInstant
The internal time instant information.
TimeInstant()
Constructor.
AbstractData * clone() const
It returns a clone of this object.
TimeInstant(const boost::posix_time::ptime &t)
Constructor.
TimeDuration getTime() const
It returns the time duration associated to time instant.
Date getDate() const
It returns the date associated to time instant.
TimeInstant(const std::string &dtime)
Constructor.
bool operator>(const DateTime &rhs) const
Operator >
bool operator==(const DateTime &rhs) const
Operator ==.
static TimeInstant * now()
An abstract class to represent an instant of date and time.
const boost::posix_time::ptime & getTimeInstant() const
It returns the boost time instant type.
A base class for date data types.
boost::posix_time::ptime & getTimeInstant()
It returns the boost time instant type.
virtual ~TimeInstant()
Constructor.
A class to represent time duration with nano-second/micro-second resolution.
A base class for values that can be retrieved from the data access module.
TimeInstant(const Date &d, const TimeDuration &td)
Constructor from a date and time offset.
A class to represent time duration.
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.
An abstract class to represent an instant of date and time.
A class to represent time instant.
DateTimeType getDateTimeType() const
It returns the subtype of the date and time type.
bool operator<(const DateTime &rhs) const
Operator <.
bool operator!=(const DateTime &rhs) const
Operator !=.
std::string toString() const
It returns the time instant in the ISO textual format (YYYYMMDDTHHMMSS,fffffffff) where T is the date...
long operator-(const TimeInstant &rhs) const
Operator -.
DateTimeType
The subtype of date and time type, based on ISO 8621.
A base class for date data types.