Version

GetUtcOffset(DateTimeOffset,TimeZoneDefinition) Method

Gets the Utc offset for a specific date time
Syntax
'Declaration
 
Protected Overloads Function GetUtcOffset( _
   ByVal dateTimeOffset As DateTimeOffset, _
   ByVal timeZoneDef As TimeZoneInfoProvider.TimeZoneDefinition _
) As TimeSpan
protected TimeSpan GetUtcOffset( 
   DateTimeOffset dateTimeOffset,
   TimeZoneInfoProvider.TimeZoneDefinition timeZoneDef
)

Parameters

dateTimeOffset
The specific date time
timeZoneDef
The time zone the date time is relative to

Return Value

The offset from Utc time that applies to this date time
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also