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



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

Parameters

value
A string to be converted into a TdIntervalHourToMinute.

Return Value

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

This method supports the following string formats:

String Format Description
General interval format

[sign][hours]:[mm]

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

INTERVAL [sign]'[hours]:[mm]' HOUR TO MINUTE

Below is the description of each format item.

Format Item Description
sign Optional - . Defaults as space character (+).
hours Required number of hours from 0 - 9999.
mm Required number of minutes from 00 - 59.

Cultural settings are not supported.

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

For example a value of "100: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

TdIntervalHourToMinute Structure
TdIntervalHourToMinute Members