时间格式化
2022-05-27 本文已影响0人
Me_tooo
DateTimeFormatter dateTimeFormatter=DateTimeFormatter.ofPattern("yyyy年MM月dd日HH时mm分ss秒");
System.out.println(LocalDateTime.now().format(dateTimeFormatter));
System.out.println(dateTimeFormatter.format(LocalDateTime.now()));