模式化long  

SimpleDateFormat sdf = new SimpleDateFormat("", Locale.SIMPLIFIED_CHINESE);
		sdf.applyPattern("yyyy年MM月dd日 HH时mm分ss秒");
		System.out.println(sdf.format(System.currentTimeMillis()));

格式化Date() 

SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MMM-dd HH:mm:ss:SSS");
		String formatStr =formatter.format(new Date());
		System.out.println(formatStr);//2017-九月-15 13:17:08:355

java 格式化时间

相关文章:

  • 2021-11-07
  • 2022-02-07
  • 2021-10-23
  • 2022-12-23
  • 2022-02-08
  • 2021-07-15
  • 2021-12-07
  • 2021-07-05
猜你喜欢
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2021-11-12
  • 2021-12-29
相关资源
相似解决方案