📜  java 日期时间 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:40.808000             🧑  作者: Mango

代码示例2
import java.time.LocalTime; // import the LocalTime class
...
// To display the current time (hour, minute, second, and nanoseconds)
LocalTime time = LocalTime.now();
System.out.println(time); // 11:04:57.416546