获取当前时间

public class Shijian {
public static void main(String[] args) {
long l=System.currentTimeMillis();
long x;
x=l/1000;
System.out.println((x/3600)%24+8+":"+x/60%60+":"+x%60);
}
}

利用Java获取当前时间

相关文章:

  • 2022-12-23
  • 2021-12-21
  • 2022-01-05
  • 2021-12-10
猜你喜欢
  • 2021-06-13
  • 2021-12-20
  • 2021-10-06
  • 2021-06-17
  • 2022-12-23
相关资源
相似解决方案