Click or drag to resize
OSIsoft, LLC

AFTimeZoneToUniversalTime Method (DateTime)

Returns the Coordinated Universal Time (UTC) that corresponds to a specified time.

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

Parameters

time
Type: SystemDateTime
A time to be converted. If already a UTC time, then no conversion is performed on the returned value.

Return Value

Type: DateTime
Returns a DateTime instance whose value is the UTC time that corresponds to 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.
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