Joda-Time 2.9.5 发布了。
更新内容如下:
Add Norwegian period translations [#378]
Add Duration.dividedBy(long,RoundingMode) [#69, #379]
DateTimeZone data updated to version 2016i
Fixed bug where clock read twice when comparing two nulls in DateTimeComparator [#404]
Fixed minor issues with historic time-zone data [#373]
Fix bug in time-zone binary search [#332, #386]
The fix in v2.9.2 caused problems when the time-zone being parsed was not the last element in the input string. New approach uses a different approach to the problem.
Update tests for JDK 9 [#394]
Close buffered reader correctly in zone info compiler [#396]
Handle locale correctly zone info compiler [#397]
下载地址:
JodaTime 提供了一组Java类包用于处理包括ISO8601标准在内的date和time。可以利用它把JDK Date和Calendar类完全替换掉,而且仍然能够提供很好的集成。
Joda-Time主要的特点包括:
1. 易于使用:Calendar让获取"正常的"的日期变得很困难,使它没办法提供简单的方法,而Joda-Time能够 直接进行访问域并且索引值1就是代表January。
2. 易于扩展:JDK支持多日历系统是通过Calendar的子类来实现,这样就显示的非常笨重而且事实 上要实现其它日历系统是很困难的。Joda-Time支持多日历系统是通过基于Chronology类的插件体系来实现。
3. 提供一组完整的功能:它打算提供 所有关系到date-time计算的功能.Joda-Time当前支持6种日历系统,而且在将来还会继续添加。有着比JDK Calendar更好的整体性能等等。
引用来自“愚_者”的评论
这个组件也jdk8的time包的作者是同一个那么,这个组件都一直在修bug,是不是可以说明jdk8的time包也是很多bug呢?
引用来自“兮风古道”的评论
😄那么,这个组件都一直在修bug,是不是可以说明jdk8的time包也是很多bug呢?