1.Timestamp 转 LocalDateTime Timestamp time = Timestamp.from(Instant.now()); LocalDateTime localDateTime = time.toLocalDateTime(); 2.LocalDateTime 转 Timestamp Timestamp time = Timestamp.valueOf(LocalDateTime.now());
1.Timestamp 转 LocalDateTime Timestamp time = Timestamp.from(Instant.now()); LocalDateTime localDateTime = time.toLocalDateTime(); 2.LocalDateTime 转 Timestamp Timestamp time = Timestamp.valueOf(LocalDateTime.now());