获取当前时间 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); } } 相关文章: 2022-12-23 2021-12-21 2022-01-05 2021-12-10