AFTime.TruncateToWholeSeconds Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Truncates the fractional seconds from the AFTime object.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public AFTime TruncateToWholeSeconds()
Public Function TruncateToWholeSeconds As AFTime Dim instance As AFTime Dim returnValue As AFTime returnValue = instance.TruncateToWholeSeconds()
public: AFTime TruncateToWholeSeconds()
member TruncateToWholeSeconds : unit -> AFTime
Return Value
Type: AFTimeReturns the AFTime with the fractional seconds truncated from this AFTime object.
Remarks
The NowInWholeSeconds property can be used to get the current date and time
with the fractional seconds truncated.