26 #ifndef __TERRALIB_DATATYPE_INTERNAL_DATE_H 
   27 #define __TERRALIB_DATATYPE_INTERNAL_DATE_H 
   33 #include <boost/date_time/gregorian/gregorian.hpp> 
   67         Date(boost::gregorian::greg_year year,
 
   68              boost::gregorian::greg_month month,
 
   69              boost::gregorian::greg_day day);
 
   76         Date(
const boost::gregorian::date& d);
 
   83         const boost::gregorian::date& 
getDate()
 const { 
return m_date; } 
 
   90         boost::gregorian::date& 
getDate() { 
return m_date; } 
 
   97         boost::gregorian::greg_day 
getDay()
 const { 
return m_date.day(); } 
 
  104         boost::gregorian::greg_month 
getMonth()
 const { 
return m_date.month(); } 
 
  111         boost::gregorian::greg_year 
getYear()
 const { 
return m_date.year(); } 
 
  158         long operator-(
const Date& rhs) 
const;
 
  172         std::string toString() 
const;
 
  194 #endif // __TERRALIB_DATATYPE_INTERNAL_DATE_H 
An abstract class to represent an instant of date and time. 
 
te::da::Expression * operator<(const te::da::Expression &e1, const te::da::Expression &e2)
 
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
boost::gregorian::greg_year getYear() const 
It returns the gregorian year. 
 
boost::gregorian::greg_month getMonth() const 
It returns the gregorian month - from 1 to 12. 
 
DateTimeType getDateTimeType() const 
It returns the subtype of the date and time type. 
 
A base class for date data types. 
 
te::da::Expression * operator==(const te::da::Expression &e1, const te::da::Expression &e2)
 
te::da::Expression * operator!=(const te::da::Expression &e1, const te::da::Expression &e2)
 
boost::gregorian::greg_day getDay() const 
It returns the gregorian day - from 1 to 31. 
 
boost::gregorian::date m_date
Internal date information. 
 
DateTimeType
The subtype of date and time type. 
 
A base class for values that can be retrieved from the data access module. 
 
An abstract class to represent an instant of date and time. 
 
te::da::Expression * operator>(const te::da::Expression &e1, const te::da::Expression &e2)
 
boost::gregorian::date & getDate()
It returns the internal boost date type. 
 
const boost::gregorian::date & getDate() const 
It returns the internal boost date type.