AFTimeSpan.Ticks Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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: 3.1.1.1182
Syntax
public long Ticks { get; }
Public ReadOnly Property Ticks As Long Get Dim instance As AFTimeSpan Dim value As Long value = instance.Ticks
public: property long long Ticks { long long get (); }
member Ticks : int64 with get
Property Value
Type: Int64The 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.