Gets the time difference between the current time zone's standard time and Coordinated Universal Time (UTC).
Assembly: mscorlib (in mscorlib.dll)
The time span returned by theproperty can range from 14 hours (for a time zone that is 14 hours ahead of Coordinated Universal Time (UTC)) to -14 hours (for a time zone that is 14 hours behind UTC). Time zones that are ahead of UTC have a positive offset; time zones that are behind UTC have a negative offset.
Thevalue is represented as a whole number of minutes. It cannot include a fractional number of minutes.
Because TimeZoneInfo object rather than the TimeZoneInfo::AdjustmentRule object, the TimeZoneInfo class applies a single offset from UTC to all of a time zone's adjustments. To reflect a time zone that has modified its offset from UTC, you must create a new time zone using the CreateCustomTimeZone method.is a property of the
The GetUtcOffset method in the following ways:property differs from the
The GetUtcOffset method returns the difference between UTC and the time zone's time at a particular point in time.property returns the difference between UTC and the time zone's standard time; the
The GetUtcOffset method reflects the application of any adjustment rules to the time zone; the property does not.
Available since 4.5
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1