IAFTimePeriod Interface
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
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
| Name | Description | |
|---|---|---|
| Duration |
This is a read-only property which returns the duration between the period's StartTime and
EndTime values as an AFTimeSpan.
| |
| EndTime |
This read-only property represents the end time of the period.
| |
| StartTime |
This read-only property represents the start time of the period.
| |
| TimeRange |
Methods
| Name | Description | |
|---|---|---|
| SetEndTime |
Set the time that represents the time that the period ended.
| |
| 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.