Class GetCurrentTime


  • @Sample(name="get-current-time",
            description="This sample gets the current time of the vSphere Server")
    public class GetCurrentTime
    extends ConnectedVimServiceBase
     GetCurrentTime
    
     This sample gets the current time of the vSphere Server
    
     Parameters:
     url          [required] : url of the web service
     username     [required] : username for the authentication
     password     [required] : password for the authentication
    
     Command Line:
     run.bat com.vmware.general.GetCurrentTime
     --url [webservicesurl] --username [Username] --password [password]
     
    • Constructor Detail

      • GetCurrentTime

        public GetCurrentTime()
    • Method Detail

      • getCurrentTime

        @Action
        public void getCurrentTime()
                            throws com.vmware.vim25.RuntimeFaultFaultMsg
        This method retrieves the current time from the server and prints it.
        Throws:
        com.vmware.vim25.RuntimeFaultFaultMsg