java8中 long值转换成日期类型:
DateTimeFormatter df= DateTimeFormatter.ofPattern("YYYY-MM-dd HH:mm:ss.SSS");
df.format(LocalDateTime.ofInstant(Instant.ofEpochMilli(1471337924226L),ZoneId.of("Asia/Shanghai"))));
java8中 long值转换成日期类型:
DateTimeFormatter df= DateTimeFormatter.ofPattern("YYYY-MM-dd HH:mm:ss.SSS");
df.format(LocalDateTime.ofInstant(Instant.ofEpochMilli(1471337924226L),ZoneId.of("Asia/Shanghai"))));