AFTimeSpan.Hours Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- 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.1.1.1182
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.