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



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

Parameters

left
A TdTime instance.
right
A TdTime instance.

Return Value

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

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

Return Value Description
true

left and right are TdTime.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.
TdTime later = new TdTime(new TimeSpan(15, 45, 0));
TdTime earlier = new TdTime(new TimeSpan(14, 30, 0));
 
// The following comparison methods and operators are equivalent
if (false == TdTime.Equals(later, earlier) ||
    later != earlier ||
    true == TdTime.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

TdTime Structure
TdTime Members
Overload List