Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFTable.ConvertToLocalTime Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTable.ConvertToLocalTime Property
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: Boolean
True 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.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in