Click or drag to resize
OSIsoft, LLC

AFTimeSpanTicks Property

Get the number of ticks that represent the value of the current AFTimeSpan structure.

Namespace:  OSIsoft.AF.Time
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.8.440
Syntax
public long Ticks { get; }

Property Value

Type: Int64
The number of ticks contained in this instance.
Remarks

The smallest unit of time is the tick, which is equal to 100 nanoseconds. A tick can be negative or positive.

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