Click or drag to resize
OSIsoft, LLC

AFTimeZoneToLocalTime Method (AFTimeZone, DateTime)

Convert a DateTime to the specified AFTimeZone.

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

Parameters

destination
Type: OSIsoft.AF.TimeAFTimeZone
The AFTimeZone of the returned time.
time
Type: SystemDateTime
The DateTime to be converted to the local time of the destination time zone.

Return Value

Type: DateTime
Returns the time as a local time in the destination time zone.
Remarks
This method converts the time to the local time representation of the specified destination time zone.
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