A class to represent ordinal time instant. More...
#include <OrdinalInstant.h>
Public Member Functions | |
| AbstractData * | clone () const |
| It returns a clone of this object. | |
| DateTimeType | getDateTimeType () const |
| It returns the subtype of the date and time type. | |
| Int64 | getTimeInstant () const |
| It returns the time instant. | |
| int | getTypeCode () const |
| It returns the data type code associated to date and time values: DATETIME_TYPE. | |
| bool | operator!= (const DateTime &rhs) const |
| Operator !=. | |
| bool | operator< (const DateTime &rhs) const |
| Operator <. | |
| bool | operator== (const DateTime &rhs) const |
| Operator ==. | |
| bool | operator> (const DateTime &rhs) const |
| Operator > | |
| OrdinalInstant () | |
| Empty constructor. | |
| OrdinalInstant (Int64 t) | |
| Constructor. | |
| void | setTimeInstant (Int64 t) |
| It sets the time instant. | |
| std::string | toString () const |
| It returns the time instant in a textual format. | |
Protected Attributes | |
| Int64 | m_timeInstant |
| The internal time instant information. | |
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.