TimeZoneInfo.GetUtcOffset Method (DateTimeOffset)
Calculates the offset or difference between the time in this time zone and Coordinated Universal Time (UTC) for a particular date and time.
Assembly: mscorlib (in mscorlib.dll)
- Type: System.DateTimeOffset
The date and time to determine the offset for.
The returned time span includes any differences due to the application of adjustment rules to the current time zone. It differs from the BaseUtcOffset property, which returns the difference between Coordinated Universal Time (UTC) and the time zone's standard time and, therefore, does not take adjustment rules into account.
XNA FrameworkWhen this method is used in the XNA Framework, it throws a NotSupportedException exception.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.