AFTime Implicit Conversion (AFTime to DateTime)
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Implicit cast operator to convert an AFTime to a DateTime.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
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 )
Parameters
- time
- Type: OSIsoft.AF.TimeAFTime
The AFTime to be converted.
Return Value
Type: DateTimeReturns the AFTime.UtcTime of the specified time parameter.