Click or drag to resize
OSIsoft, LLC

AFTimeZoneToUniversalTime Method (AFTimeZone, DateTime)

Convert a DateTime from the specified AFTimeZone.

Namespace:  OSIsoft.AF.Time
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.8.440
Syntax
public static DateTime ToUniversalTime(
	AFTimeZone source,
	DateTime time
)

Parameters

source
Type: OSIsoft.AF.TimeAFTimeZone
The AFTimeZone of the time to be converted.
time
Type: SystemDateTime
The DateTime to be converted from the source time zone to Coordinated Universal Time (UTC).

Return Value

Type: DateTime
Returns the time converted to Coordinated Universal Time (UTC).
Remarks
This method converts the time from the local time of the source time zone to Coordinated Universal Time (UTC).
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