利用Java獲取當前時間

獲取當前時間 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); } }
相關文章
相關標籤/搜索