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



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

Parameters

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

Return Value

true if the conversion of value succeeded, false otherwise.
Remarks

This method supports the following string formats:

String Format Description
General interval format

[sign][days] [hh]:[mm]

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

INTERVAL [sign]'[days] [hh]:[mm]' DAY TO MINUTE

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.

Cultural settings are not supported.

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

For example a value of "20 10:25" will contain a precision of 2.

Requirements

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

See Also

Reference

TdIntervalDayToMinute Structure
TdIntervalDayToMinute Members