Send feedback on this topic.
Teradata.Client.Provider
TryParse Method (TdIntervalMinuteToSecond)



Teradata.Client.Provider Namespace > TdIntervalMinuteToSecond Structure : TryParse Method
A string to be converted into a TdIntervalMinuteToSecond.
The converted string into a TdIntervalMinuteToSecond.
The specified string is converted into an equivalent TdIntervalMinuteToSecond.
The specified string is converted into an equivalent TdIntervalMinuteToSecond interval. A true is returned if the conversion succeeded, false otherwise.
Syntax
'Declaration
 
Public Shared Function TryParse( _
   ByVal value As String, _
   ByRef result As TdIntervalMinuteToSecond _
) As Boolean
'Usage
 
Dim value As String
Dim result As TdIntervalMinuteToSecond
Dim value As Boolean
 
value = TdIntervalMinuteToSecond.TryParse(value, result)
public static bool TryParse( 
   string value,
   out TdIntervalMinuteToSecond result
)
public:
static bool TryParse( 
   String^ value,
   [Out] TdIntervalMinuteToSecond result
) 

Parameters

value
A string to be converted into a TdIntervalMinuteToSecond.
result
The converted string into a TdIntervalMinuteToSecond.

Return Value

true if the conversion of value succeeded, false otherwise.
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