Click or drag to resize
OSIsoft, LLC

AFTimeZoneGetUtcOffset Method

Calculates the offset or difference between the time in this time zone and the Coordinated Universal Time (UTC) for a particular date and time.

Namespace:  OSIsoft.AF.Time
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.8.440
Syntax
public override TimeSpan GetUtcOffset(
	DateTime time
)

Parameters

time
Type: SystemDateTime
The date and time to determine the offset for. If a UTC time is specified, then a TimeSpan of 0 ticks is returned.

Return Value

Type: TimeSpan
The UTC offset from the specified time.
Remarks

Coordinated Universal Time (UTC) is sometimes referred to colloquially as Greenwich Mean Time (GMT). Local time is the date and time on the computer you are using. Offset is the difference between local time and UTC. That is: local time = UTC + offset. The returned time span includes any differences due to the application of adjustment rules to the current time zone.

Note Note
See TimeZoneInfo.GetUtcOffset for more information.

Version Information

AFSDK

Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5, 2.4
See Also
Enabling Operational Intelligence