AFTime.Subtraction Operator (AFTime, AFTime)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static TimeSpan operator -( AFTime lhs, AFTime rhs )
Public Shared Operator - ( lhs As AFTime, rhs As AFTime ) As TimeSpan Dim lhs As AFTime Dim rhs As AFTime Dim returnValue As TimeSpan returnValue = (lhs - rhs)
public: static TimeSpan operator -( AFTime lhs, AFTime rhs )
static let inline (-) lhs : AFTime * rhs : AFTime : TimeSpan
Parameters
- lhs
- Type: OSIsoft.AF.TimeAFTime
A AFTime (the minuend). - rhs
- Type: OSIsoft.AF.TimeAFTime
A AFTime (the subtrahend).
Return Value
Type: TimeSpanA TimeSpan that is the time interval between lhs and rhs; that is, lhs minus rhs.