開課吧 互聯(lián)網(wǎng)全鏈路產(chǎn)品設(shè)計(jì)2022
Date轉(zhuǎn)LocalDate
Date date = new Date();System.out.println("LocalDateTime():" + (new Date()).toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime());
11.5 時(shí)間戳轉(zhuǎn)LocalDateTime
long timestamp = System.currentTimeMillis();Instant instant1 = Instant.ofEpochMilli(timestamp);
標(biāo)簽: