Click or drag to resize
OSIsoft, LLC

AFTimeSpanToTimeSpan Method

Returns the time span as a standard TimeSpan object.

Namespace:  OSIsoft.AF.Time
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.8.440
Syntax
public TimeSpan ToTimeSpan()

Return Value

Type: TimeSpan
Returns the time span as a standard TimeSpan object.
Remarks
The span interval is returned as standard TimeSpan object. Since there are a variable number of days in a year or month, an AFTimeSpan defined using these interval values may return unexpected results. A year interval is calculated as 365.25 days and a month interval is calculated as 30 days.
Version Information

AFSDK

Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5, 2.4
See Also
Enabling Operational Intelligence