A class to represent date period based on the Gregorian Calendar.  
 More...
#include <DatePeriod.h>
A class to represent date period based on the Gregorian Calendar. 
A class to represent date period based on the Gregorian Calendar. A date period represents a range between two dates. Internally, it uses the datetime boost library to represent gregorian date period, by using the data type boost::gregorian::date_period.
- See also
 - DateTime, Date, DateDuration, TimeDuration, TimeInstant, TimeInstantTZ, TimePeriod, TimePeriodTZ 
 
Definition at line 51 of file DatePeriod.h.
 
      
        
          | te::dt::DatePeriod::DatePeriod  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | te::dt::DatePeriod::DatePeriod  | 
          ( | 
          const Date &  | 
          initialDate,  | 
        
        
           | 
           | 
          const Date &  | 
          finalDate  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | initialDate | An initial gregorian date.  | 
    | finalDate | An final gregorian date.  | 
  
   
 
 
      
        
          | te::dt::DatePeriod::DatePeriod  | 
          ( | 
          const boost::gregorian::date_period &  | 
          dp | ) | 
           | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | dp | A date period based on the Gregorian Calendar.  | 
  
   
 
 
      
        
          | te::dt::DatePeriod::DatePeriod  | 
          ( | 
          const boost::gregorian::date &  | 
          begin,  | 
        
        
           | 
           | 
          const boost::gregorian::date &  | 
          end  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
It creates a period as [begin, end). 
- Parameters
 - 
  
    | begin | The initial date.  | 
    | begin | The final date.  | 
  
   
 
 
  
  
      
        
          | virtual te::dt::DatePeriod::~DatePeriod  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
  
  
      
        
          | const boost::gregorian::date_period& te::dt::DatePeriod::getDatePeriod  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
It returns the boost date period type. 
- Returns
 - The boost date period type. 
 
Definition at line 86 of file DatePeriod.h.
 
 
  
  
      
        
          | boost::gregorian::date_period& te::dt::DatePeriod::getDatePeriod  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
      
        
          | Date te::dt::DatePeriod::getFinalDate  | 
          ( | 
           | ) | 
           const | 
        
      
 
It gets the final date. 
- Returns
 - The final date 
 
 
 
It gets the final date time instant. 
- Returns
 - The final time instant
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
Implements te::dt::DateTimePeriod.
 
 
      
        
          | Date te::dt::DatePeriod::getInitialDate  | 
          ( | 
           | ) | 
           const | 
        
      
 
It gets the initial date. 
- Returns
 - The initial date 
 
 
 
It gets the initial date time instant. 
- Returns
 - The initial time instant
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
Implements te::dt::DateTimePeriod.
 
 
  
  
      
        
          | int te::dt::DateTime::getTypeCode  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
It returns the data type code associated to date and time values: DATETIME_TYPE. 
- Returns
 - The data type code associated to the date and time values: DATETIME_TYPE. 
 
Implements te::dt::AbstractData.
Definition at line 103 of file DateTime.h.
References te::dt::DATETIME_TYPE.
 
 
  
  
      
        
          | bool te::dt::DatePeriod::operator!=  | 
          ( | 
          const DateTime &  | 
          rhs | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Operator !=. 
- Parameters
 - 
  
    | rhs | The date period to be compared. | 
  
   
- Returns
 - It returns true if the two date periods are not equal. Otherwise, it returns false. 
 
Implements te::dt::DateTime.
 
 
  
  
      
        
          | bool te::dt::DatePeriod::operator<  | 
          ( | 
          const DateTime &  | 
          rhs | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Operator <. 
- Parameters
 - 
  
    | rhs | The right side date period to be compared. | 
  
   
- Returns
 - It returns true if the right side date period is greater than the lefth side one. Otherwise, it returns false. 
 
Implements te::dt::DateTime.
 
 
  
  
      
        
          | bool te::dt::DatePeriod::operator==  | 
          ( | 
          const DateTime &  | 
          rhs | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Operator ==. 
- Parameters
 - 
  
    | rhs | The date period to be compared. | 
  
   
- Returns
 - It returns true if the two date periods are equal. Otherwise, it returns false. 
 
Implements te::dt::DateTime.
 
 
  
  
      
        
          | bool te::dt::DatePeriod::operator>  | 
          ( | 
          const DateTime &  | 
          rhs | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Operator > 
- Parameters
 - 
  
    | rhs | The right side date period to be compared. | 
  
   
- Returns
 - It returns true if the right side date period is less than the lefth side one. Otherwise, it returns false. 
 
Implements te::dt::DateTime.
 
 
  
  
      
        
          | std::string te::dt::DatePeriod::toString  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
It returns the date period in the ISO textual format (YYYYMMDDTYYYYMMDD). 
- Returns
 - The date period in the ISO textual format (YYYYMMDDTYYYYMMDD). 
 
Implements te::dt::AbstractData.
 
 
  
  
      
        
          | boost::gregorian::date_period te::dt::DatePeriod::m_datePeriod | 
         
       
   | 
  
protected   | 
  
 
The internal date period information. 
Definition at line 191 of file DatePeriod.h.
 
 
The documentation for this class was generated from the following file: