si.getServerConnection().logout();
return;
}
HostDateTimeSystem hdts = host.getHostDateTimeSystem();
HostDateTimeInfo info = hdts.getDateTimeInfo();
System.out.println("The NTP Servers:");
HostNtpConfig cfg = info.getNtpConfig();
String[] svrs = cfg.getServer();
for(int i=0; svrs!=null && i<svrs.length; i++)
{
System.out.println("Server["+i+"]:" + svrs[i]);
}
System.out.println("\nCurrent Time Zone:");
HostDateTimeSystemTimeZone tz = info.getTimeZone();
System.out.println("Key:" + tz.getKey());
System.out.println("Name:" + tz.getName());
// the GMT offset is in seconds.
// for example, America/Los_Angeles, -28800
System.out.println("GmtOffset:" + tz.getGmtOffset());