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

AF SDK Reference

OSIsoft.AF.Time Namespace

  • Last UpdatedNov 18, 2025
  • 3 minute read
OSIsoft.AF.Time Namespace
The OSIsoft.AF.Time namespace provides a set of classes that relate to time functions.

Classes

  ClassDescription
Public class
AFLocaleIndependentFormatProvider
An IFormatProvider that implements the locale independent format supported by the PI SDK.
Public class
AFTimeRule
The AFTimeRule provides a way to create case time periods based on user supplied logic and configuration.
Public class
AFTimeRuleSupportsChildTimeRuleAttribute Obsolete.
Attribute used on an AFTimeRule to indicate that it supports child time rules to be created under it.
Public class
AFTimeRuleEvent
An event generated by a time rule
Public class
AFTimeRuleEventArgs
The event arguments for a time rule event.
Public class
AFTimeRuleEvents
A collection of events generated by time rules
Public class
AFTimeRules Obsolete.
The collection of AFTimeRule objects is maintained by the an AFTimeRule.
Public class
AFTimeZone
Represents information about a time zone.
Public class
AFTimeZoneFormatProvider
An IFormatProvider that specifies a TimeZone to be used when parsing time strings.

Structures

  StructureDescription
Public structureCode example
AFTime
AFTime is used to represent time and convert between various time formats.
Public structure
AFTimeIntervalDefinition
Time interval definition structure.
Public structureCode example
AFTimeRange
This structure represents a time range which is defined by a start time and an end time.
Public structureCode example
AFTimeSpan
This is a structure which represents a time interval.

Interfaces

  InterfaceDescription
Public interface
IAFTimePeriod
This interface defines the properties and methods for objects which support a time period.
Public interface
IAFTimeSource
This interface defines the properties for objects which support a time source.

Delegates

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