Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFTime.TruncateToWholeSeconds Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTime.TruncateToWholeSeconds Method
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: AFTime
Returns 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.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in