Send feedback on this topic.
Teradata.Client.Provider
Zero Field (TdIntervalSecond)
Example 



Teradata.Client.Provider Namespace > TdIntervalSecond Structure : Zero Field
Gets an TdIntervalSecond instance that contains all zero elements for each interval field.
Syntax
'Declaration
 
Public Shared ReadOnly Zero As TdIntervalSecond
'Usage
 
Dim value As TdIntervalSecond
 
value = TdIntervalSecond.Zero
public static readonly TdIntervalSecond Zero
public:
static readonly TdIntervalSecond Zero
Example
This example shows how to determine if an interval is negative.
TdIntervalDayTo Second secInterval = new TdIntervalSecond(0, -100000);
if (secInterval < TdIntervalSecond.Zero)
{
   Console.WriteLine("The Interval is negative");
}
// The output of the console is "The interval is negative"
Remarks
A Zero TdIntervalSecond may be used to determine whether other instances of intervals represent postive, negative or non-zero intervals.
Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdIntervalSecond Structure
TdIntervalSecond Members