AFTimeSpan.Hours Property
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Gets the fixed hours component of the time interval represented by the current
AFTimeSpan structure.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public int Hours { get; }
Public ReadOnly Property Hours As Integer Get Dim instance As AFTimeSpan Dim value As Integer value = instance.Hours
public: property int Hours { int get (); }
member Hours : int with get
Property Value
Type: Int32The fixed hour component of this instance. The return value can be positive or negative and can be greater than 24.