A class to represent ordinal time instant. More...
#include <OrdinalInstant.h>
  
Public Member Functions | |
| AbstractData * | clone () const | 
| It returns a clone of this object.  More... | |
| DateTimeType | getDateTimeType () const | 
| It returns the subtype of the date and time type.  More... | |
| Int64 | getTimeInstant () const | 
| It returns the time instant.  More... | |
| int | getTypeCode () const | 
| It returns the data type code associated to date and time values: DATETIME_TYPE.  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... | |
| bool | operator> (const DateTime &rhs) const | 
| Operator >  More... | |
| OrdinalInstant () | |
| Empty constructor.  More... | |
| OrdinalInstant (Int64 t) | |
| Constructor.  More... | |
| void | setTimeInstant (Int64 t) | 
| It sets the time instant.  More... | |
| std::string | toString () const | 
| It returns the time instant in a textual format.  More... | |
Protected Attributes | |
| Int64 | m_timeInstant | 
| The internal time instant information.  More... | |
A class to represent ordinal time instant.
An ordinal number to represent a time instant. Examples: the first/second/etc epidemiological week, the first/second/etc day, etc.
To understand the meaning of the ordinal numbers, a user has to use extra information, such as the temporal resolution and the starting time in the DateTimeProperty.
Definition at line 52 of file OrdinalInstant.h.
| te::dt::OrdinalInstant::OrdinalInstant | ( | ) | 
Empty constructor.
| te::dt::OrdinalInstant::OrdinalInstant | ( | Int64 | t | ) | 
Constructor.
| t | The time instant represented by an integer type. | 
      
  | 
  virtual | 
      
  | 
  inlinevirtual | 
It returns the subtype of the date and time type.
Implements te::dt::DateTime.
Definition at line 135 of file OrdinalInstant.h.
References te::dt::ORDINAL_TIME_INSTANT.
      
  | 
  inline | 
It returns the time instant.
Definition at line 71 of file OrdinalInstant.h.
      
  | 
  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.
      
  | 
  virtual | 
Operator !=.
| rhs | The time instant to be compared. | 
Implements te::dt::DateTime.
      
  | 
  virtual | 
Operator <.
| rhs | The right-hand-side time instant to be compared. | 
Implements te::dt::DateTime.
      
  | 
  virtual | 
Operator ==.
| rhs | The time instant to be compared. | 
Implements te::dt::DateTime.
      
  | 
  virtual | 
Operator >
| rhs | The right-hand-side time instant to be compared. | 
Implements te::dt::DateTime.
      
  | 
  inline | 
It sets the time instant.
| t | The time instant. | 
Definition at line 78 of file OrdinalInstant.h.
      
  | 
  virtual | 
It returns the time instant in a textual format.
Implements te::dt::AbstractData.
      
  | 
  protected | 
The internal time instant information.
Definition at line 139 of file OrdinalInstant.h.