Send feedback on this topic.
Teradata.Client.Provider
NotEquals Method (TdTimeWithTimeZone)



Teradata.Client.Provider Namespace > TdTimeWithTimeZone Structure : NotEquals Method
An instance of TdTimeWithTimeZone.
An instance of TdTimeWithTimeZone.
Compares two TdTimeWithTimeZone to determine whether the left operand is not equal to the right operand.
Syntax
'Declaration
 
Public Shared Function NotEquals( _
   ByVal left As TdTimeWithTimeZone, _
   ByVal right As TdTimeWithTimeZone _
) As Boolean
'Usage
 
Dim left As TdTimeWithTimeZone
Dim right As TdTimeWithTimeZone
Dim value As Boolean
 
value = TdTimeWithTimeZone.NotEquals(left, right)
public static bool NotEquals( 
   TdTimeWithTimeZone left,
   TdTimeWithTimeZone right
)
public:
static bool NotEquals( 
   TdTimeWithTimeZone left,
   TdTimeWithTimeZone right
) 

Parameters

left
An instance of TdTimeWithTimeZone.
right
An instance of TdTimeWithTimeZone.

Return Value

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

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

Return Value Description
true

left or right is TdTimeWithTimeZone.Null

-or-

left is less than or greater than right.

false

left and right are Null

-or-

left is equal to right.

When comparing two time values the UTC offset is also included in the comparison. The UTC offset is subtracted from the time which results in the UTC time. The following table shows the result when comparing two TdTimeWtihTimeZone values:

NotEquals Comparison Result
"23:10:11+05:00" NotEquals "15:00:02-02:00" true
"23:10:11+01:00" NotEquals "21:10:11-01:00" false
"21:53:00-08:00" NotEquals "21:53:00-06:00" true
"21:53:00-08:00" NotEquals "05:53:00+00:00" false

Requirements

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

See Also

Reference

TdTimeWithTimeZone Structure
TdTimeWithTimeZone Members