AFTime Implicit Conversion (AFTime to DateTime)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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 )
Parameters
- time
- Type: OSIsoft.AF.TimeAFTime
The AFTime to be converted.
Return Value
Type: DateTimeReturns the AFTime.UtcTime of the specified time parameter.