Calendar

Calendar cal =  Calendar.getInstance();
System.out.println(cal.get(Calendar.YEAR));
System.out.println(cal.get(Calendar.HOUR_OF_DAY));

 

posted @ 2018-01-24 16:19  aLa神灯  阅读(131)  评论(0编辑  收藏  举报