android获取系统小时(24小时制)
2015年10月1日
没有评论
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(“HH”, Locale.getDefault());
simpleDateFormat.setTimeZone(TimeZone.getTimeZone(“GMT+08”));
String nowHH = simpleDateFormat.format(new Date()).toString();
android获取系统小时(24小时制),返回的是24小时制的小时。
近期评论