long thisTime = System.currentTimeMillis();
java.text.SimpleDateFormat dateAndTimeFormat = new java.text.SimpleDateFormat("yyyy.MM.dd hh:mm:ss");
String strDate = dateAndTimeFormat.format(new java.util.Date(thisTime));
为什么这样获得的时间不是24小时的?下午18点还是6点?
java.text.SimpleDateFormat dateAndTimeFormat = new java.text.SimpleDateFormat("yyyy.MM.dd hh:mm:ss");
String strDate = dateAndTimeFormat.format(new java.util.Date(thisTime));
为什么这样获得的时间不是24小时的?下午18点还是6点?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货