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

AF SDK Reference

IAFTimePeriod Interface

  • Last UpdatedNov 18, 2025
  • 3 minute read
IAFTimePeriod Interface
This interface defines the properties and methods for objects which support a time period.

Namespace:  OSIsoft.AF.Time
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public interface IAFTimePeriod
Public Interface IAFTimePeriod

Dim instance As IAFTimePeriod
public interface class IAFTimePeriod
type IAFTimePeriod =  interface end

The IAFTimePeriod type exposes the following members.

Properties

  NameDescription
Public property
Duration
This is a read-only property which returns the duration between the period's StartTime and EndTime values as an AFTimeSpan.
Public property
EndTime
This read-only property represents the end time of the period.
Public property
StartTime
This read-only property represents the start time of the period.
Public property
TimeRange
This is a read-only property which returns the period's StartTime and EndTime values as a time range.

Methods

  NameDescription
Public method
SetEndTime
Set the time that represents the time that the period ended.
Public method
SetStartTime
Set the time that represents the time that the period started.

Remarks

Objects which support a time period have a starting and ending time. This interface provides a consistent set of property and methods for objects which support this time period characteristic.

Version Information

AFSDK


See Also

TitleResults for “How to create a CRG?”Also Available in