Examples of queryDateTime()


Examples of com.vmware.vim.binding.vim.host.DateTimeSystem.queryDateTime()

   public static int getHostTimeDiffInSec(VcHost vcHost) throws Exception {
      HostSystem hostSystem = (HostSystem) vcHost.getManagedObject();
      ManagedObjectReference ref = hostSystem.getConfigManager().getDateTimeSystem();
      DateTimeSystem dateTimeSystem = MoUtil.getManagedObject(ref);

      return (int)(dateTimeSystem.queryDateTime().getTimeInMillis() - System.currentTimeMillis())/1000;
   }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.