A base class for date data types. More...
#include <Date.h>
  
 Public Member Functions | |
| AbstractData * | clone () const | 
| It returns a clone of this object.  More... | |
| Date () | |
| Empty constructor.  More... | |
| Date (boost::gregorian::greg_year year, boost::gregorian::greg_month month, boost::gregorian::greg_day day) | |
| Constructor.  More... | |
| Date (const boost::gregorian::date &d) | |
| Constructor.  More... | |
| const boost::gregorian::date & | getDate () const | 
| It returns the internal boost date type.  More... | |
| boost::gregorian::date & | getDate () | 
| It returns the internal boost date type.  More... | |
| DateTimeType | getDateTimeType () const | 
| It returns the subtype of the date and time type.  More... | |
| boost::gregorian::greg_day | getDay () const | 
| It returns the gregorian day - from 1 to 31.  More... | |
| boost::gregorian::greg_month | getMonth () const | 
| It returns the gregorian month - from 1 to 12.  More... | |
| int | getTypeCode () const | 
| It returns the data type code associated to date and time values: DATETIME_TYPE.  More... | |
| boost::gregorian::greg_year | getYear () const | 
| It returns the gregorian year.  More... | |
| bool | operator!= (const DateTime &rhs) const | 
| Operator !=.  More... | |
| long | operator- (const Date &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... | |
| std::string | toString () const | 
| It returns the date in the ISO textual format (YYYYMMDD).  More... | |
| virtual | ~Date () | 
| Destructor.  More... | |
Protected Attributes | |
| boost::gregorian::date | m_date | 
| Internal date information.  More... | |
A base class for date data types.
A class to represent dates based on the Gregorian Calendar. Internally, it uses boost datetime library to represent gregorian date, by using the data type boost::gregorian::date. For more information see the date representation defined in ISO 8601:2004 specification.
| te::dt::Date::Date | ( | boost::gregorian::greg_year | year, | 
| boost::gregorian::greg_month | month, | ||
| boost::gregorian::greg_day | day | ||
| ) | 
| te::dt::Date::Date | ( | const boost::gregorian::date & | d | ) | 
      
  | 
  virtual | 
      
  | 
  inline | 
It returns the internal boost date type.
Definition at line 83 of file Date.h.
Referenced by operator!=(), operator-(), operator<(), operator==(), and operator>().
      
  | 
  inline | 
      
  | 
  inlinevirtual | 
It returns the subtype of the date and time type.
Implements te::dt::DateTime.
Definition at line 179 of file Date.h.
References te::dt::DATE.
      
  | 
  inline | 
It returns the gregorian day - from 1 to 31.
Definition at line 97 of file Date.h.
Referenced by te::ado::GetFormattedDateTime().
      
  | 
  inline | 
It returns the gregorian month - from 1 to 12.
Definition at line 104 of file Date.h.
Referenced by te::ado::GetFormattedDateTime().
      
  | 
  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 getDouble().
      
  | 
  inline | 
It returns the gregorian year.
Definition at line 111 of file Date.h.
Referenced by te::ado::GetFormattedDateTime().
      
  | 
  virtual | 
Operator !=.
| rhs | The date to be compared. | 
Implements te::dt::DateTime.
Definition at line 52 of file Date.cpp.
References getDate().
| long te::dt::Date::operator- | ( | const Date & | rhs | ) | const | 
      
  | 
  virtual | 
Operator <.
| rhs | The right side date to be compared. | 
Implements te::dt::DateTime.
Definition at line 58 of file Date.cpp.
References getDate().
      
  | 
  virtual | 
Operator ==.
| rhs | The date to be compared. | 
Implements te::dt::DateTime.
Definition at line 46 of file Date.cpp.
References getDate().
      
  | 
  virtual | 
Operator >
| rhs | The right side date to be compared. | 
Implements te::dt::DateTime.
Definition at line 64 of file Date.cpp.
References getDate().
      
  | 
  virtual | 
It returns the date in the ISO textual format (YYYYMMDD).
Implements te::dt::AbstractData.
      
  | 
  protected |