Send feedback on this topic.
Teradata.Client.Provider
Subtraction(TdTimestamp,TdTimestamp) Operator



Teradata.Client.Provider Namespace > TdTimestamp Structure > Subtraction Operator : Subtraction(TdTimestamp,TdTimestamp) Operator
The left TdTimestamp operand.
The right TdTimestamp operand.
The time interval between two TdTimestamps is returned when the TdTimestams are subtracted from each other.
Syntax
'Declaration
 
Overloads Public Operator -( _
   ByVal leftOperand As TdTimestamp, _
   ByVal rightOperand As TdTimestamp _
) As TimeSpan
'Usage
 
public TimeSpan operator -( 
   TdTimestamp leftOperand,
   TdTimestamp rightOperand
)
public:
TimeSpan operator -( 
   TdTimestamp leftOperand,
   TdTimestamp rightOperand
)

Parameters

leftOperand
The left TdTimestamp operand.
rightOperand
The right TdTimestamp operand.

Return Value

A TimeSpan is returned that represents the time interval between the left and right TdTimestamp.
Exceptions
ExceptionDescription
One of the operands is Null.
Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdTimestamp Structure
TdTimestamp Members
Overload List