java 格式化时间

模式化long   SimpleDateFormat sdf = new SimpleDateFormat("", Locale.SIMPLIFIED_CHINESE); sdf.applyPattern("yyyy年MM月dd日 HH时mm分ss秒"); System.out.println(sdf.format(System.currentTimeMillis())); 格式化Date
相关文章
相关标签/搜索