Go to the documentation of this file.
26 #ifndef __TERRALIB_DATATYPE_INTERNAL_DATE_H
27 #define __TERRALIB_DATATYPE_INTERNAL_DATE_H
79 Date(
const boost::gregorian::greg_year& year,
80 const boost::gregorian::greg_month& month,
81 const boost::gregorian::greg_day& day);
88 Date(
const boost::gregorian::date& d);
100 const boost::gregorian::date&
getDate()
const;
114 const boost::gregorian::greg_day&
getDay()
const;
121 const boost::gregorian::greg_month&
getMonth()
const;
128 const boost::gregorian::greg_year&
getYear()
const;
223 #endif // __TERRALIB_DATATYPE_INTERNAL_DATE_H
const boost::gregorian::greg_year & getYear() const
It returns the gregorian year.
const boost::gregorian::greg_month & getMonth() const
It returns the gregorian month - from 1 to 12.
Date(const boost::gregorian::greg_year &year, const boost::gregorian::greg_month &month, const boost::gregorian::greg_day &day)
Constructor.
std::string toString() const
It returns the date in the ISO textual format (YYYYMMDD).
An abstract class to represent an instant of date and time.
DateTimeType getDateTimeType() const
It returns the subtype of the date and time type.
bool operator==(const DateTime &rhs) const
Operator ==.
A base class for values that can be retrieved from the data access module.
const boost::gregorian::date & getDate() const
It returns the internal boost date type.
bool operator!=(const DateTime &rhs) const
Operator !=.
const boost::gregorian::greg_day & getDay() const
It returns the gregorian day - from 1 to 31.
bool operator<(const DateTime &rhs) const
Operator <.
long operator-(const Date &rhs) const
Operator -.
#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.
std::unique_ptr< DateImpl > m_dateImpl
Internal date information.
bool operator>(const DateTime &rhs) const
Operator >
boost::gregorian::date & getDate()
It returns the internal boost date type.
AbstractData * clone() const
It returns a clone of this object.
virtual ~Date()
Destructor.
Date(const boost::gregorian::date &d)
Constructor.
DateTimeType
The subtype of date and time type, based on ISO 8621.
Date(const te::dt::Date &rhs)
Copy Constructor.
A base class for date data types.