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

AF SDK Reference

AFTime Implicit Conversion (AFTime to DateTime)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTime Implicit Conversion (AFTime to DateTime)
Implicit cast operator to convert an AFTime to a DateTime.

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

Syntax

public static implicit operator DateTime (
	AFTime time
)
Public Shared Widening Operator CType ( 
	time As AFTime
) As DateTime

Dim input As AFTime
Dim output As DateTime

output = CType(input, DateTime)
static implicit operator DateTime (
	AFTime time
)
F# does not support the declaration of new casting operators.

Parameters

time
Type: OSIsoft.AF.TimeAFTime
The AFTime to be converted.

Return Value

Type: DateTime
Returns the AFTime.UtcTime of the specified time parameter.

Version Information

AFSDK


See Also

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