SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String three_days_after = sdf.format(new Date());
DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
LocalDateTime ldt = LocalDateTime.parse(three_days_after, df);
获取系统当前时间返回LocalDateTime类型
最新推荐文章于 2023-11-11 10:22:31 发布
关键词由CSDN通过智能技术生成