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



Teradata.Client.Provider Namespace > TdIntervalDayToHour Structure : Zero Field
Gets an TdIntervalDayToHour instance that contains all zero elements for each interval field.
Syntax
'Declaration
 
Public Shared ReadOnly Zero As TdIntervalDayToHour
'Usage
 
Dim value As TdIntervalDayToHour
 
value = TdIntervalDayToHour.Zero
public static readonly TdIntervalDayToHour Zero
public:
static readonly TdIntervalDayToHour Zero
Example
This example shows how to determine if an interval is negative.
TdIntervalDayTo Second dthInterval = new TdIntervalDayToHour(0, -1);
if (dthInterval < TdIntervalDayToHour.Zero)
{
   Console.WriteLine("The Interval is negative");
}
// The output of the console is "The interval is negative"
Remarks
A Zero TdIntervalDayToHour may be used to determine whether other instances of intervals represent postive, negative or non-zero intervals.
Requirements
ProductVersionsPlatforms
.NET6, 7Windows, Linux, MacOS
.NET Framework4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdIntervalDayToHour Structure
TdIntervalDayToHour Members