AFTime.NowInWholeSeconds Property
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
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.2.0.7
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: AFTimeA 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
Reference
DateTime.Now
DateTime.UtcNow