te::dt::DateTime Class Referenceabstract

#include <DateTime.h>

Inheritance diagram for te::dt::DateTime:
te::dt::AbstractData te::dt::DateDuration te::dt::DateTimeInstant te::dt::DateTimePeriod te::dt::TimeDuration te::dt::Date te::dt::OrdinalInstant te::dt::TimeInstant te::dt::TimeInstantTZ te::dt::DatePeriod te::dt::OrdinalPeriod te::dt::TimePeriod te::dt::TimePeriodTZ

Public Member Functions

virtual AbstractDataclone () const =0
 It returns a clone of this object. More...
 
 DateTime ()
 Default constructor. More...
 
virtual DateTimeType getDateTimeType () const =0
 It returns the subtype of the date and time type. More...
 
int getTypeCode () const
 It returns the data type code associated to date and time values: DATETIME_TYPE. More...
 
virtual bool operator!= (const DateTime &) const =0
 Operator !=. More...
 
virtual bool operator< (const DateTime &) const =0
 Operator <. More...
 
virtual bool operator== (const DateTime &) const =0
 Operator ==. More...
 
virtual bool operator> (const DateTime &) const =0
 Operator > More...
 
virtual std::string toString () const =0
 It returns the data value in a string notation. More...
 
virtual ~DateTime ()
 Virtual destructor. More...
 

Detailed Description

Definition at line 55 of file DateTime.h.

Constructor & Destructor Documentation

te::dt::DateTime::DateTime ( )
inline

Default constructor.

Definition at line 60 of file DateTime.h.

virtual te::dt::DateTime::~DateTime ( )
inlinevirtual

Virtual destructor.

Definition at line 113 of file DateTime.h.

Member Function Documentation

virtual DateTimeType te::dt::DateTime::getDateTimeType ( ) const
pure virtual

It returns the subtype of the date and time type.

Returns
The subtype of the date and time type.

Implemented in te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimeDuration, te::dt::Date, te::dt::TimeInstant, te::dt::TimePeriodTZ, te::dt::OrdinalPeriod, te::dt::TimeInstantTZ, te::dt::DateDuration, and te::dt::OrdinalInstant.

int te::dt::DateTime::getTypeCode ( ) const
inlinevirtual

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.

virtual bool te::dt::DateTime::operator!= ( const DateTime ) const
pure virtual

Operator !=.

Parameters
rhsThe date and time to be compared.
Returns
It returns true if the two date and time are not equal. Otherwise, it returns false.

Implemented in te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimePeriodTZ, te::dt::OrdinalPeriod, te::dt::TimeInstant, te::dt::TimeDuration, te::dt::Date, te::dt::DateDuration, te::dt::OrdinalInstant, and te::dt::TimeInstantTZ.

virtual bool te::dt::DateTime::operator< ( const DateTime ) const
pure virtual

Operator <.

Parameters
rhsThe date and time to be compared.
Returns
It returns true if the right-hand-side time is greater than the lefth side one. Otherwise, it returns false.

Implemented in te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimePeriodTZ, te::dt::OrdinalPeriod, te::dt::TimeInstant, te::dt::TimeDuration, te::dt::Date, te::dt::DateDuration, te::dt::OrdinalInstant, and te::dt::TimeInstantTZ.

virtual bool te::dt::DateTime::operator== ( const DateTime ) const
pure virtual

Operator ==.

Parameters
rhsThe date and time to be compared.
Returns
It returns true if the two date and time are equal. Otherwise, it returns false.

Implemented in te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimePeriodTZ, te::dt::OrdinalPeriod, te::dt::TimeInstant, te::dt::TimeDuration, te::dt::Date, te::dt::DateDuration, te::dt::OrdinalInstant, and te::dt::TimeInstantTZ.

virtual bool te::dt::DateTime::operator> ( const DateTime ) const
pure virtual

Operator >

Parameters
rhsThe right-hand-side time duration to be compared.
Returns
It returns true if the right-hand-side time duration is less than the lefth side one. Otherwise, it returns false.

Implemented in te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimePeriodTZ, te::dt::OrdinalPeriod, te::dt::TimeInstant, te::dt::TimeDuration, te::dt::Date, te::dt::DateDuration, te::dt::OrdinalInstant, and te::dt::TimeInstantTZ.


The documentation for this class was generated from the following file: