ALibrary icon indicating copy to clipboard operation
ALibrary copied to clipboard

AdDateUtil中的getTime方法

Open renyanxu2000 opened this issue 8 years ago • 0 comments

SimpleDateFormat format = new SimpleDateFormat(DATE_FORMAT_HMS, Locale.CHINA); format.setTimeZone(TimeZone.getTimeZone("GMT+00:00")); String strUserTime = format.format(ms);

这是一个种不错的方法,注意一定要加上中间那句时区,不然会多出8个小时。 还有你的那个方法不显示小时。 @wzgiceman

renyanxu2000 avatar Jan 13 '17 09:01 renyanxu2000