55

java8的时间和`Date`的对比-java架构师1的博客

 5 years ago
source link: https://blog.51cto.com/13981400/2355810
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
java8提供了新的时间接口。相对Date,Calendar,个人感觉最大的好处是对时间操作的学习成本很低,比Calendar低。1.LocalDate,LocalTime,LocalDateTimeLocalDate代表日期,LocalTime表示时刻,类似11:23这样的时刻。LocalDateTime就是前面2个的结合,这个可以从java.time.LocalDateTime#toStrin

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK