Java Instant\Date\LocalDateTime\Calendar\ZonedDateTime转化
Posted on 2022-06-27 16:06 在下刚哥 阅读(206) 评论(0) 编辑 收藏 举报
public static Instant toInstant(Date date) { return Instant.ofEpochMilli(date.getTime());} public static Date toDate(Instant instant) { return new Dat