Click or drag to resize
OSIsoft, LLC

AFTime Constructor (DateTime)

Initializes a new instance of the AFTime structure to the specified DateTime.

Namespace:  OSIsoft.AF.Time
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.8.440
Syntax
public AFTime(
	DateTime time
)

Parameters

time
Type: SystemDateTime
The DateTime to be represented. If the Kind is Unspecified the time is treated as Coordinated Universal Time (UTC).
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown if the timestamp is between 1/1/1900 and 1/1/1970.
Remarks
Values less than January 1, 1900 will automatically be converted to MinValue. Values between January 1, 1900 and MinValue (January 1, 1970) will generate an ArgumentOutOfRangeException.
Version Information

AFSDK

Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5, 2.4
See Also
Enabling Operational Intelligence