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

AF SDK Reference

AFTime Constructor (Object)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTime Constructor (Object)
Initializes a new instance of the AFTime structure to the specified value.

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

Syntax

public AFTime(
	Object time
)
Public Sub New ( 
	time As Object
)

Dim time As Object

Dim instance As New AFTime(time)
public:
AFTime(
	Object^ time
)
new : 
        time : Object -> AFTime

Parameters

time
Type: SystemObject
Converts different types of objects, including PISDK.PITime objects, to AFTime. A will return an AFTime representing the current time.

Remarks

This constructor will convert the specified object to a new instance of an AFTime. The .NET4 version of this constructor will accept a PISDK.PITime as input. This is no longer supported in .NET8 This constructor will use the CurrentCulture when parsing the time parameter. Use the constructor that accepts an IFormatProvider to specify a specific culture or for parsing.

Version Information

AFSDK


See Also

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