Send feedback on this topic.
Teradata.Client.Provider
Equals(TdTimestamp,TdTimestamp) Method
Example 



Teradata.Client.Provider Namespace > TdTimestamp Structure > Equals Method : Equals(TdTimestamp,TdTimestamp) Method
A TdTimestamp instance.
A TdTimestamp instance.
Compares two TdTimestamp instances to determine whether they are equal.
Syntax
'Declaration
 
Public Overloads Shared Function Equals( _
   ByVal left As TdTimestamp, _
   ByVal right As TdTimestamp _
) As Boolean
'Usage
 
Dim left As TdTimestamp
Dim right As TdTimestamp
Dim value As Boolean
 
value = TdTimestamp.Equals(left, right)
public static bool Equals( 
   TdTimestamp left,
   TdTimestamp right
)
public:
static bool Equals( 
   TdTimestamp left,
   TdTimestamp right
) 

Parameters

left
A TdTimestamp instance.
right
A TdTimestamp instance.

Return Value

A boolean is returned that indicates the result of the comparison.
Remarks

The value that is returned is true if the left is equal to the right, false otherwise.

Return Value Description
true

left and right are TdTimestamp.Null

-or-

left is equal to right.

false

left or right is Null

-or-

left is not equal to right.

Example
The following code example uses various comparison methods and operators.
TdTimestamp  later = new TdTimestamp(new DateTime(2010, 8, 31, 23, 45, 0));
TdTimestamp earlier = new TdTimestamp(new DateTime(2010, 8, 31, 20, 30, 0));
 
// The following comparison methods and operators are equivalent
if (false == TdTimestamp.Equals(later, earlier) ||
    later != earlier ||
    true == TdTimestamp.NotEquals(later, earlier) )
{
   Console.WriteLine(“later does not equal earlier”);
}
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