当先锋百科网

首页 1 2 3 4 5 6 7
LocalDateTime parse = LocalDateTime.parse("2022-08-03T21:28:26.437");
long milliseconds  = parse.toInstant(ZoneOffset.of("+8")).toEpochMilli();
LocalDateTime localDateTime = Instant.ofEpochMilli(milliseconds).atZone(ZoneOffset.ofHours(8)).toLocalDateTime();