AFTable.ConvertToLocalTime Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Indicates if the time values within a table should be treated as client local time.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool ConvertToLocalTime { get; set; }
Public Property ConvertToLocalTime As Boolean Get Set Dim instance As AFTable Dim value As Boolean value = instance.ConvertToLocalTime instance.ConvertToLocalTime = value
public: property bool ConvertToLocalTime { bool get (); void set (bool value); }
member ConvertToLocalTime : bool with get, set
Property Value
Type: BooleanTrue indicates time values within a table should be treated as client local time. False indicates that table time values should be queried using the TimeZone setting.
Remarks
Table time value queries are formed using client local time. If the table TimeZone is
set and ConvertToLocalTime is false, then the TimeZone of the table is used to generate query timestamps.
If the table TimeZone is not set, output values of type DateTime are set to local DateTime of the client.
Otherwise, the output values of type DateTime are set to UTC DateTime.