AFTime Constructor (Double)
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Initializes a new instance of the AFTime structure to the specified number of
seconds since January 1, 1970.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public AFTime( double seconds )
Public Sub New ( seconds As Double ) Dim seconds As Double Dim instance As New AFTime(seconds)
public: AFTime( double seconds )
new : seconds : float -> AFTime
Parameters
- seconds
- Type: SystemDouble
A UTC date and time expressed in the number of seconds since January 1, 1970.
Remarks
A value of 0 will result in a value of AFTime.MinValue.