Partager via


CustomTimeZone.GetUtcOffset Method

Returns the Coordinated Universal Time (UTC) offset for the specified local time.

Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

Syntax

'Declaration
Public Overrides Function GetUtcOffset ( _
    time As DateTime _
) As TimeSpan
public override TimeSpan GetUtcOffset(
    DateTime time
)
public:
virtual TimeSpan GetUtcOffset(
    DateTime time
) override
abstract GetUtcOffset : 
        time:DateTime -> TimeSpan  
override GetUtcOffset : 
        time:DateTime -> TimeSpan
public override function GetUtcOffset(
    time : DateTime
) : TimeSpan

Parameters

Return Value

Type: System.TimeSpan
The Coordinated Universal Time (UTC) offset from Time

.NET Framework Security

See Also

Reference

CustomTimeZone Class

Microsoft.TeamFoundation.Common Namespace