calendar获取系统当前小时数
24小时制
Calendar calendar = Calendar.getInstance(); int curHour24 = calendar.get(calendar.HOUR_OF_DAY);
12小时制
Calendar calendar = Calendar.getInstance(); int curHour12 = calendar.get(calendar.HOUR);
24小时制
Calendar calendar = Calendar.getInstance(); int curHour24 = calendar.get(calendar.HOUR_OF_DAY);
12小时制
Calendar calendar = Calendar.getInstance(); int curHour12 = calendar.get(calendar.HOUR);