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



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

Parameters

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

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

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

INTERVAL [sign]'[hours]:[mm]' HOUR TO MINUTE

Below is the description of each format item.

Format Item Description
sign Optional - . Defaults as space character (+).
hours Required number of hours from 0 - 9999.
mm Required number of minutes from 00 - 59.

Cultural settings are not supported.

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

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

Requirements

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

See Also

Reference

TdIntervalHourToMinute Structure
TdIntervalHourToMinute Members