API Guides > ConceptRT 3.x
Overloaded Operators

Detailed Description

Functions

TimeSpan operator- (const Date &left, const Date &right)
 Subtraction operator. More...
 
Date operator+ (const Date &left, const TimeSpan &timeSpan)
 Addition operator. More...
 
Date operator- (const Date &left, const TimeSpan &timeSpan)
 Subtraction operator. More...
 
bool operator< (const Date &left, const Date &right)
 Less-than comparison operator. More...
 
bool operator> (const Date &left, const Date &right)
 Greater-than comparison operator. More...
 
bool operator<= (const Date &left, const Date &right)
 Less-than-or-equal comparison operator. More...
 
bool operator>= (const Date &left, const Date &right)
 Greater-than-or-equal comparison operator. More...
 
bool operator== (const Date &left, const Date &right)
 Equality operator. More...
 
bool operator!= (const Date &left, const Date &right)
 Finaliser. More...
 

Function Documentation

bool operator!= ( const Date left,
const Date right 
)

Finaliser.

Parameters
leftThe first instance to compare.
rightThe second instance to compare.
Returns
true if the first parameter is not equal to the second.
Date operator+ ( const Date left,
const TimeSpan timeSpan 
)

Addition operator.

Parameters
leftThe first value.
timeSpanA value to add to it.
Returns
The result of the operation.
TimeSpan operator- ( const Date left,
const Date right 
)

Subtraction operator.

Parameters
leftThe first value.
rightA value to subtract from it.
Returns
The result of the operation.
Date operator- ( const Date left,
const TimeSpan timeSpan 
)

Subtraction operator.

Parameters
leftThe first value.
timeSpanA value to subtract from it.
Returns
The result of the operation.
bool operator< ( const Date left,
const Date right 
)

Less-than comparison operator.

Parameters
leftThe first instance to compare.
rightThe second instance to compare.
Returns
true if the first parameter is less than the second.
bool operator<= ( const Date left,
const Date right 
)

Less-than-or-equal comparison operator.

Parameters
leftThe first instance to compare.
rightThe second instance to compare.
Returns
true if the first parameter is less than or equal to the second.
bool operator== ( const Date left,
const Date right 
)

Equality operator.

Parameters
leftThe first instance to compare.
rightThe second instance to compare.
Returns
true if the parameters are considered equivalent.
bool operator> ( const Date left,
const Date right 
)

Greater-than comparison operator.

Parameters
leftThe first instance to compare.
rightThe second instance to compare.
Returns
true if the first parameter is greater than to the second.
bool operator>= ( const Date left,
const Date right 
)

Greater-than-or-equal comparison operator.

Parameters
leftThe first instance to compare.
rightThe second instance to compare.
Returns
true if the first parameter is greater than or equal to the second.