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



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

Parameters

value
A string to be converted into a TdIntervalMinute.

Return Value

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

This method supports the following string formats:

String Format Description
G

General interval format.

[sign][[minutes]

L

Teradata literal format. This string may be used in generating SQL against the Teradata database.

INTERVAL [sign]'[minutes]' MINUTE

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).

While parsing the value the TdIntervalMinute.Precision will be set to the number of digits contained within the minutes component.

For example a value of "100" will contain a precision of 3.

Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdIntervalMinute Structure
TdIntervalMinute Members