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



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

Parameters

value
A string to be converted into a TdIntervalHourToSecond.

Return Value

A TdIntervalHourToSecond is returned that is equivalent to the TdIntervalHourToSecond contained in the input string.
Exceptions
ExceptionDescription
value cannot be converted into a TdIntervalHourToSecond interval.
value is a null reference.
The resultant operation returns a value greater than the TdIntervalHourToSecond.MaxValue or less than the TdIntervalHourToSecond.MinValue.
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

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdIntervalHourToSecond Structure
TdIntervalHourToSecond Members