java set system time

来源:互联网 发布:python网络爬虫源代码 编辑:程序博客网 时间:2024/05/17 05:01

 java可以对系统时间进行修改,其操作如下:try   {   
      java.lang.Runtime.getRuntime().exec("cmd   /c   time   xx:xx:xx");   
  }   catch   (java.io.IOException   e)   {}  

invoke native interface

原创粉丝点击