墨染丶

导航

2020年6月5日 #

获取当前时间的年月日时分秒

摘要: 1 Calendar now = Calendar.getInstance(); 2 System.out.println("年: " + now.get(Calendar.YEAR)); 3 System.out.println("月: " + (now.get(Calendar.MONTH) + 阅读全文

posted @ 2020-06-05 17:54 墨染丶 阅读(6921) 评论(0) 推荐(0) 编辑