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

AF SDK Reference

IAFTimeSource.ServerTime Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
IAFTimeSource.ServerTime Property
Gets the current time of the server associated with the object implementing this interface.

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

Syntax

AFTime ServerTime { get; }
ReadOnly Property ServerTime As AFTime
	Get

Dim instance As IAFTimeSource
Dim value As AFTime

value = instance.ServerTime
property AFTime ServerTime {
	AFTime get ();
}
abstract ServerTime : AFTime with get

Property Value

Type: AFTime
Returns the current time of the server associated with the object implementing this interface.
Note Notes to Callers
This property returns an AFTime, which represents the server time in Coordinated Universal Time (UTC). The property AFTime.LocalTime will convert the UTC Time to the local client time zone, which may be different than the server time zone. To see the time as the local time in the server's timezone, use the following command (where 'server' is the PIServer or PISystem object): server.ServerTimeZone.ToLocalTime(server.ServerTime).

Version Information

AFSDK


See Also

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