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



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

Parameters

value
A string to be converted into a TdIntervalDayToMinute.

Return Value

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

This method supports the following string formats:

String Format Description
General interval format

[sign][days] [hh]:[mm]

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

INTERVAL [sign]'[days] [hh]:[mm]' DAY TO MINUTE

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.
mm The number of minutes from 00 - 59.

Cultural settings are not supported.

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

For example a value of "100 5:25" will contain a precision of 3.

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdIntervalDayToMinute Structure
TdIntervalDayToMinute Members