Click or drag to resize
OSIsoft, LLC

IAFTimeSourceServerTime 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: 2.10.8.440
Syntax
AFTime ServerTime { 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

Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5
See Also
Enabling Operational Intelligence