AFTimeSpan.IsNegative Property
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Indicates if the current AFTimeSpan represents a negative span.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public bool IsNegative { get; }
Public ReadOnly Property IsNegative As Boolean Get Dim instance As AFTimeSpan Dim value As Boolean value = instance.IsNegative
public: property bool IsNegative { bool get (); }
member IsNegative : bool with get
Property Value
Type: BooleanReturns if the current AFTimeSpan represents a negative span. Otherwise, returns .
Remarks
A AFTimeSpan determines whether or not it is negative by the
sign of the most significant interval specified. For example, "+3d-30m"
would represent a positive span but "-3d+30m" would represent a negative
span.