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
time
Type: System.DateTimeA date and time value.
Return Value
Type: System.TimeSpan
The Coordinated Universal Time (UTC) offset from Time
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.