Click or drag to resize

ISystemTimeManagerGetSystemTimeInfo Method

Get the list of time zone information.

Namespace: Bosch.Vms.SDK
Assembly: Bosch.Vms.SDK (in Bosch.Vms.SDK.dll) Version: 1.9.0.0
Syntax
C#
IEnumerable<SystemTimeInfo> GetSystemTimeInfo()

Return Value

IEnumerableSystemTimeInfo
Time zone information.
Example
C#
try
{
    IEnumerable<SystemTimeInfo> info = api.SystemTimeManager.GetSystemTimeInfo();
    foreach (SystemTimeInfo systemTimeInfo in info)
    {
        switch (systemTimeInfo.SystemInfoKind)
        {
            case SystemInfoKind.Client:
                MessageBox.Show(string.Format("Operator Client time zone is: {0}", systemTimeInfo.TimeZoneInfo));
                break;
            case SystemInfoKind.Server:
                MessageBox.Show(string.Format("Management Server time zone is: {0}", systemTimeInfo.TimeZoneInfo));
                break;
            default:
                MessageBox.Show("Time zone is not available.");
                break;
        }
    }
}
catch (SdkException)
{
    // do something
}
See Also