AFTime Constructor (Double)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- 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.1.1.1182
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.