Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFTimeRange Constructor (AFTime, AFTime)

  • Last UpdatedJan 12, 2026
  • 2 minute read
AFTimeRange Constructor (AFTime, AFTime)
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.2.0.7

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.

Version Information

AFSDK


See Also

In This Topic