Send feedback on this topic.
Teradata.Client.Provider
ToTimeZone Method (TdTimeWithTimeZone)



Teradata.Client.Provider Namespace > TdTimeWithTimeZone Structure : ToTimeZone Method
The time zone that will be used to convert this instance.
Converts the time zone of this instance to a different time zone.
Syntax
'Declaration
 
Public Function ToTimeZone( _
   ByVal newUtcOffset As TimeSpan _
) As TdTimeWithTimeZone
'Usage
 
Dim instance As TdTimeWithTimeZone
Dim newUtcOffset As TimeSpan
Dim value As TdTimeWithTimeZone
 
value = instance.ToTimeZone(newUtcOffset)
public TdTimeWithTimeZone ToTimeZone( 
   TimeSpan newUtcOffset
)
public:
TdTimeWithTimeZone ToTimeZone( 
   TimeSpan newUtcOffset
) 

Parameters

newUtcOffset
The time zone that will be used to convert this instance.

Return Value

A TdTimeWithTimeZone is returned that has been converted to use newUtcOffset.
Exceptions
ExceptionDescription
A time component is out of the valid range.
The seconds and sub-seconds of the UTC Offset must be 0.
This instance of TdTimeWithTimeZone is TdTimeWithTimeZone.Null.
Remarks
This method does not apply any time zone adjustment rules in the conversion. For example, the rule associated with daylight savings for a particular time zone will be ignored.
Requirements

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

See Also

Reference

TdTimeWithTimeZone Structure
TdTimeWithTimeZone Members