AFTime.TruncateToWholeSeconds Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Truncates the fractional seconds from the AFTime object.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
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.