Send feedback on this topic.
Teradata.Client.Provider
Parse(String) Method



Teradata.Client.Provider Namespace > TdIntervalDayToHour Structure : Parse(String) Method
A string to be converted into a TdIntervalDayToHour.
The specified string is converted into an equivalent TdIntervalDayToHour.
The specified string is converted into an equivalent TdIntervalDayToHour interval.
Syntax
'Declaration
 
Public Shared Function Parse( _
   ByVal value As String _
) As TdIntervalDayToHour
'Usage
 
Dim value As String
Dim value As TdIntervalDayToHour
 
value = TdIntervalDayToHour.Parse(value)
public static TdIntervalDayToHour Parse( 
   string value
)
public:
static TdIntervalDayToHour Parse( 
   String^ value
) 

Parameters

value
A string to be converted into a TdIntervalDayToHour.

Return Value

A TdIntervalDayToHour is returned that is equivalent to the TdIntervalDayToHour contained in the input string.
Exceptions
ExceptionDescription
value cannot be converted into a TdIntervalDayToHour interval.
value is a null reference.
The resultant operation returns a value greater than the TdIntervalDayToHour.MaxValue or less than the TdIntervalDayToHour.MinValue.
Remarks

This method supports the following string formats:

String Format Description
General interval format.

[sign][days] [hh]

SQL literal format. This string may be used in a SQL statement.

INTERVAL [sign]'[days] [hh]' DAY TO HOUR

Below is the description of each format item.

Format Item Description
sign If negative a minus sign will be displayed.
days The number of days (one to four digits in length).
hh The number of hours from 00 - 23.

Cultural settings are not supported.

While parsing the value the TdIntervalDayToHour.Precision will be set to the number of digits contained within the day component.

For example a value of "100 10" will contain a precision of 3.

Requirements

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

See Also

Reference

TdIntervalDayToHour Structure
TdIntervalDayToHour Members