import com.github.oshihirobara.klock.* Instant now = Instant.now() String formattedTime = now.format(DateTimeFormatter.ISO_DATE_TIME) System.out.println("Formatted time: " + formattedTime) <dependency> <groupId>com.github.oshihirobara.klock</groupId> <artifactId>klock</artifactId> <version>1.0.0</version> </dependency>


上一篇:
下一篇:
切换中文