MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLTimeInstant Class Reference

Detailed Description

This class represents time.

Public Member Functions

 TSLTimeInstant ()
 
 TSLTimeInstant (TSLTime64 time)
 
bool isNull () const
 
TSLTime64 theTime () const
 
TSLTimeInstantoperator+= (TSLTimeInterval const &dt)
 
TSLTimeInstantoperator-= (TSLTimeInterval const &dt)
 
bool operator== (TSLTimeInstant const &other) const
 
bool operator!= (TSLTimeInstant const &other) const
 
bool operator< (TSLTimeInstant const &other) const
 
bool operator<= (TSLTimeInstant const &other) const
 
bool operator> (TSLTimeInstant const &other) const
 
bool operator>= (TSLTimeInstant const &other) const
 

Constructor & Destructor Documentation

◆ TSLTimeInstant() [1/2]

TSLTimeInstant::TSLTimeInstant ( )

Default constructor. Sets the time to the current (GMT) time.

◆ TSLTimeInstant() [2/2]

TSLTimeInstant::TSLTimeInstant ( TSLTime64 time)
inline

Constructor. Sets the time to the supplied value.

Parameters
timeA 64-bit value representing the time.

Member Function Documentation

◆ isNull()

bool TSLTimeInstant::isNull ( ) const
inline

Returns true if the value of the internal time representation is set to 0.

◆ operator!=()

bool TSLTimeInstant::operator!= ( TSLTimeInstant const & other) const
inline

Comparison operator.

Parameters
otherThe other time to compare against.
Returns
true if the times are not equal, false otherwise.

◆ operator+=()

TSLTimeInstant & TSLTimeInstant::operator+= ( TSLTimeInterval const & dt)
inline

Advances the current time by the given interval.

Parameters
dtThe interval by which to advance the time.

◆ operator-=()

TSLTimeInstant & TSLTimeInstant::operator-= ( TSLTimeInterval const & dt)
inline

Step back the current time by the given interval.

Parameters
dtThe interval by which to regress the time.

◆ operator<()

bool TSLTimeInstant::operator< ( TSLTimeInstant const & other) const
inline

Comparison operator.

Parameters
otherThe other time to compare against.
Returns
true if the this time is less than the other time, false otherwise.

◆ operator<=()

bool TSLTimeInstant::operator<= ( TSLTimeInstant const & other) const
inline

Comparison operator.

Parameters
otherThe other time to compare against.
Returns
true if the this time is less than or equal to the other time, false otherwise.

◆ operator==()

bool TSLTimeInstant::operator== ( TSLTimeInstant const & other) const
inline

Comparison operator.

Parameters
otherThe other time to compare against.
Returns
true if the times are equal, false otherwise.

◆ operator>()

bool TSLTimeInstant::operator> ( TSLTimeInstant const & other) const
inline

Comparison operator.

Parameters
otherThe other time to compare against.
Returns
true if the this time is greater than the other time, false otherwise.

◆ operator>=()

bool TSLTimeInstant::operator>= ( TSLTimeInstant const & other) const
inline

Comparison operator.

Parameters
otherThe other time to compare against.
Returns
true if the this time is greater than or equal to the other time, false otherwise.

◆ theTime()

TSLTime64 TSLTimeInstant::theTime ( ) const
inline

Returns the 64-bit value representing the raw time.