AFTimeSpan.IsNegative Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Indicates if the current AFTimeSpan represents a negative span.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
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.