Hacker News new | past | comments | ask | show | jobs | submit login

To be fair, they didn't literally incorporate Joda, the new library is "heavily inspired" by it. It has way fewer classes, organized into a very sensibly named hierarchy.



The Joda-time author (jointly) led the JSR for this.

http://www.oracle.com/technetwork/articles/java/jf14-date-ti...


Yes, but the java.time package is significantly smaller, and much improved in my opinion. For example, Joda has a few mutable structures, while java.time is 100% immutable.

I still don't like how you can do things like Instant.from(DayOfWeek.MONDAY) (which results in a runtime exception), but at least at least it's slightly more type-safe than Joda, wherein all the conversion methods take an Object parameter.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: