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



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

Parameters

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

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][hours]:[mm]:[ss].[ffffff]

L

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

INTERVAL [sign]'[hours]:[mm]:[ss].[ffffff]' HOUR TO SECOND

Below is the description of each format item.

Format Item Description
sign Optional - . Defaults as space character (+).
hours Required number of hours (one to four digits in length).
mm Required number of minutes from 00 - 59.
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 TdIntervalHourToSecond.Precision will be set to the number of digits contained within the hour component. The TdIntervalHourToSecond.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 "10: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

TdIntervalHourToSecond Structure
TdIntervalHourToSecond Members