SimpleDateFormat formatter = new SimpleDateFormat("mm分ss.ss秒");
String formatDate = formatter.format(new Date());
格式化到毫秒微秒
需要精确到秒的几位,在后面加s就可以。
例如:
mm分ss.ss秒 10分49.04秒
mm分ss.sss秒 10分49.049秒
http://sanny.iteye.com/blog/314685
本文介绍如何使用SimpleDateFormat类进行日期格式化,包括秒和毫秒级别的格式化方法。
SimpleDateFormat formatter = new SimpleDateFormat("mm分ss.ss秒");
String formatDate = formatter.format(new Date());
5430

被折叠的 条评论
为什么被折叠?