@Test
public void c_获取当前的系统时间() {
//获取当前的系统时间 LocalDateTime ldt = LocalDateTime.now();
System.out.println(ldt); //2020-01-16T23:13:42.666
LocalDateTime now = LocalDateTime.now();
System.out.println(now.getYear() + "年" + now.getMonthValue() + "月" + now.getDayOfMonth() + "日" +
now.getHour() + "时" + now.getMinute() + "分钟" + now.getSecond() + "秒");
//获取当前年月日时分秒 }
打印结果是 : 2021年10月24日19时2分钟54秒