AFTimeRange Constructor (AFTime, AFTime)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Creates a new AFTimeRange object with the specified
start and end AFTime values.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFTimeRange( AFTime startTime, AFTime endTime )
Public Sub New ( startTime As AFTime, endTime As AFTime ) Dim startTime As AFTime Dim endTime As AFTime Dim instance As New AFTimeRange(startTime, endTime)
public: AFTimeRange( AFTime startTime, AFTime endTime )
new : startTime : AFTime * endTime : AFTime -> AFTimeRange
Parameters
- startTime
- Type: OSIsoft.AF.TimeAFTime
The starting time of the time range represented by this object. - endTime
- Type: OSIsoft.AF.TimeAFTime
The ending time of the time range represented by this object.
Remarks
An AFTimeRange represents a period of time between
the StartTime and EndTime.
This constructor creates the new AFTimeRange from the
specified start and end AFTime values.