Gets the time difference between the current time zone's standard time and Coordinated Universal Time (UTC).
- Returns
- TimeSpan An object that indicates the time difference between the current time zone's standard time and Coordinated Universal Time (UTC).
- Note
- Because BaseUtcOffset is a property of the time_zone_info object rather than the time_zone_info.AdjustmentRule object, the time_zone_info 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.
-
The BaseUtcOffset property differs from the GetUtcOffset method in the following ways:
- The BaseUtcOffset property returns the difference between UTC and the time zone's standard time; the GetUtcOffset method returns the difference between UTC and the time zone's time at a particular point in time.
- The GetUtcOffset method reflects the application of any adjustment rules to the time zone; the BaseUtcOffset property does not.