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

AF SDK Reference

AFTable.TimeZone Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTable.TimeZone Property
The AFTimeZone configured for the entire table.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public AFTimeZone TimeZone { get; set; }
Public Property TimeZone As AFTimeZone
	Get
	Set

Dim instance As AFTable
Dim value As AFTimeZone

value = instance.TimeZone

instance.TimeZone = value
public:
property AFTimeZone^ TimeZone {
	AFTimeZone^ get ();
	void set (AFTimeZone^ value);
}
member TimeZone : AFTimeZone with get, set

Property Value

Type: AFTimeZone
Returns the AFTimeZone configured for the entire table. If , then the time zone has not been configured for the table.

Remarks

This method allows a AFTimeZone to be configured for the table and would apply to any DateTime columns within the table. An individual column can override this setting by setting the TimeZone extended property value for the column. For more information, see SetExtendedProperty(String, String, Object).

The time zone setting is used by the Table Lookup Data Reference. When set, the DateTime columns within the table will have their Kind property set to Unspecified, and their time will be the time in the specified AFTimeZone. If not set, a DateTime column will default to a time expressed in local time.

As a DataTable is transferred from the PI AF Server to a PI Asset Client, if the AFTimeZone is not set for the table or any DateTime columns, the times will automatically be converted to the client's local time. If the AFTimeZone is set, then no translation of time will occur, except by the AF Table Lookup Data Reference.

Version Information

AFSDK


See Also

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