Getting Time Zone Information
- Last UpdatedAug 21, 2026
- 1 minute read
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);