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



Teradata.Client.Provider Namespace > TdPeriodTimeWithTimeZone Structure > ToString Method : ToString(String) Method
The DateTimeWithTimeZone format string that will be used to format the TdPeriodTimeWithTimeZone.
TdPeriodTimeWithTimeZone is converted to the equivalent String using the specified format.
Syntax
'Declaration
 
Public Overloads Function ToString( _
   ByVal format As String _
) As String
'Usage
 
Dim instance As TdPeriodTimeWithTimeZone
Dim format As String
Dim value As String
 
value = instance.ToString(format)
public string ToString( 
   string format
)
public:
String^ ToString( 
   String^ format
) 

Parameters

format
The DateTimeWithTimeZone format string that will be used to format the TdPeriodTimeWithTimeZone.

Return Value

A string representation of the Period.
Remarks

When a TdPeriodTimeWithTimeZone is converted to a string, both the beginning and ending bounds will be included in the returning string. The format of the string will be:

    (Beginning Bound, Ending Bound)   

The format specifier and the cultural information only affects the string representation of the beginning and ending bounds of the period. Neither parameter affects the format of the parameter. That is, the delimiter (comma) used to separate the beginning and ending bounds, and the parentheses cannot be changed.

If the format parameter is null, the string representation of TdPeriodTimeWithTimeZone will be equivalent to the "G" format specifier which is

    (HH:mm:ss.ffffffZ, HH:mm:ss.ffffffZ)

The following format specifiers are supported by TdPeriodTimeWithTimeZone:

Format Specifier Description
G

The ANSI representation of the period: (HH:mm:ss.ffffffZ, HH:mm:ss.ffffffZ).

Example: (10:21:31.002-02:00, 12:45:00.212-02:00).

l or L

The SQL literal representation of the period: PERIOD'(HH:mm:ss.ffffffZ, HH:mm:ss.ffffffZ)'.

Example: PERIOD'(10:21:31.002-02:00, 12:45:00.212-02:00)'.

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdPeriodTimeWithTimeZone Structure
TdPeriodTimeWithTimeZone Members
Overload List
ToString(String) Method