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



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

Parameters

value
A string to be converted into a TdIntervalDayToSecond.

Return Value

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

This method supports the following string formats:

String Format Description
General interval format.

[sign][days][space character][hh]:[mm]:[ss].[ffffff]

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

INTERVAL [sign]'[days][space character][hh]:[mm]:[ss].[ffffff]' DAY TO SECOND

Below is the description of each format item.

Format Item Description
sign If negative a minus sign will be displayed.
days The number of days (one to four digits in length).
hh The number of hours from 00 - 23.
mm The number of minutes from 00 - 59.
ss The number of seconds from 00 - 59.
ffffff The number of fractional seconds (0 to 6 digits in length).

Cultural settings are not supported.

While parsing the value the TdIntervalDayToSecond.Precision will be set to the number of digits contained within the day component. The TdIntervalDayToSecond.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 "222 10:25:40.1234" will contain a precision of 3 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

TdIntervalDayToSecond Structure
TdIntervalDayToSecond Members