Click or drag to resize
OSIsoft, LLC

AFTimeZoneToLocalTime Method (DateTime)

Returns the local time that corresponds to a specified time.

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


Type: SystemDateTime
A time to be converted. If a local time is specified, it is first converted to a UTC time using the current computer's time zone.

Return Value

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


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