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



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

Parameters

value
A string to be converted into a TdIntervalMinuteToSecond.

Return Value

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

This method supports the following string formats:

String Format Description
G

General interval format.

[sign][minutes]:[ss].[ffffff]

L

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

INTERVAL [sign]'[minutes]:[ss].[ffffff]' MINUTE TO SECOND

Below is the description of each format item.

Format Item Description
sign Optional - . Defaults as space character (+).
minutes Required number of minutes (one to four digits in length).
ss Required number of seconds from 00 - 59.
ffffff Optionally the number of fractional seconds (0 to 6 digits in length).

Cultural settings are not supported.

While parsing the value the TdIntervalMinuteToSecond.Precision will be set to the number of digits contained within the minute component. The TdIntervalMinuteToSecond.Scale will be set to the number of digits in the fractional seconds component (digits that are to the right of the decimal point).

For example a value of "25:40.1234" will contain a precision of 2 and a scale of 4.

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

TdIntervalMinuteToSecond Structure
TdIntervalMinuteToSecond Members