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

Historian SDK

Getting Time Zone Information

If the SDK application needs to retrieve time zone information from the historian server, it can be done using the GetSystemTimeZoneInfo() method of the HistorianAccess class. A physical connection to the historian server must be available at the moment of the call to succeed.

Example

HistorianAccessError error;
TimeZoneInfo timeZoneInfo;
if (!historian.GetSystemTimeZoneInfo(out timeZoneInfo, out error))
    Console.WriteLine("Failed to get info: {0}", error.ErrorDescription);

Console.WriteLine("Time zone info: {0}", timeZoneInfo);