Send feedback on this topic.
Teradata.Client.Provider
ToUtcTime Method



Teradata.Client.Provider Namespace > TdTimeWithTimeZone Structure : ToUtcTime Method
Calculates the Universal Coordinated Time (UTC) of this instance of TdTimeWithTimeZone.
Syntax
'Declaration
 
Public Function ToUtcTime() As TimeSpan
'Usage
 
Dim instance As TdTimeWithTimeZone
Dim value As TimeSpan
 
value = instance.ToUtcTime()
public TimeSpan ToUtcTime()
public:
TimeSpan ToUtcTime(); 

Return Value

A TimeSpan is returned that containes the UTC.
Exceptions
ExceptionDescription
This instance is TdTimeWithTimeZone.Null.
Remarks
When a time with time zone is converted into UTC, the time may roll either into the next or previous day. For example, "23:11:00-08:00" will roll into the next day when converted to UTC: "07:11:00". The time "06:23:21+10:00" will roll into the previous day when converted to UTC: "20:23:31".
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

TdTimeWithTimeZone Structure
TdTimeWithTimeZone Members