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

AF SDK Reference

AFTime.NowInWholeSeconds Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTime.NowInWholeSeconds Property
Gets a AFTime object that is set to the current date and time on this computer with the fractional seconds truncated.

Namespace:  OSIsoft.AF.Time
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public static AFTime NowInWholeSeconds { get; }
Public Shared ReadOnly Property NowInWholeSeconds As AFTime
	Get

Dim value As AFTime

value = AFTime.NowInWholeSeconds
public:
static property AFTime NowInWholeSeconds {
	AFTime get ();
}
static member NowInWholeSeconds : AFTime with get

Property Value

Type: AFTime
A AFTime whose value is the current date and time with the fractional seconds truncated.

Remarks

The TruncateToWholeSeconds method can be used to truncate the fractional seconds from an existing AFTime object.

Version Information

AFSDK


See Also

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