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

AF SDK Reference

AFTime.Subtraction Operator (AFTime, AFTime)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTime.Subtraction Operator (AFTime, AFTime)
Subtracts a specified AFTime from another specified AFTime, yielding a time interval.

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: TimeSpan
A TimeSpan that is the time interval between lhs and rhs; that is, lhs minus rhs.

Version Information

AFSDK


See Also

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