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

AF SDK Reference

AFTime.ToPIPrecision Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTime.ToPIPrecision Method
Rounds the AFTime object to the precision supported by the PIServer.

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

Syntax

public AFTime ToPIPrecision()
Public Function ToPIPrecision As AFTime

Dim instance As AFTime
Dim returnValue As AFTime

returnValue = instance.ToPIPrecision()
public:
AFTime ToPIPrecision()
member ToPIPrecision : unit -> AFTime 

Return Value

Type: AFTime
Returns the AFTime for this AFTime object rounded to the precision supported by the PIServer.

Remarks

The current AFTime object is returned as a new AFTime rounded to the precision supported by the PIServer.

Note Notes to Callers
This method, property, or class is not available in the legacy .NET 3.5 version of the SDK.

Version Information

AFSDK


See Also

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