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

AF SDK Reference

AFTime Constructor (Double)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTime Constructor (Double)
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.

Version Information

AFSDK


See Also

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