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

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdTimestamp Structure
TdTimestamp Members
Overload List