Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Joda Time to be included in Java 7? [duplicate]

Possible Duplicate:
Java 7 Date/Time API

I've read rumors that Joda Time is slated to be included in Java 7, but am having trouble locating a definitive source for this information. Will Joda Time be included in a future JDK? Please cite your source.

like image 415
Landon Kuhn Avatar asked Nov 12 '09 18:11

Landon Kuhn


People also ask

Is Joda-time format followed in Java 8?

Joda-Time is an API created by joda.org which offers better classes and having efficient methods to handle date and time than classes from java. util package like Calendar, Gregorian Calendar, Date, etc. This API is included in Java 8.0 with the java.

Is Joda-time deprecated?

So the short answer to your question is: YES (deprecated).

What is the replacement of Joda-time library in Java 8?

Correct Option: D. In java 8,we are asked to migrate to java. time (JSR-310) which is a core part of the JDK which replaces joda library project.

What is Joda-time format?

Joda-Time provides a comprehensive formatting system. There are two layers: High level - pre-packaged constant formatters. Mid level - pattern-based, like SimpleDateFormat.


2 Answers

Steven Colebourne, the author of Joda time is the spec lead of JSR-310 which aims to provide an alternative to the "old" Calendar/Date classes. While there are some similarities, JSR-310 is not Joda Time per se.

I followed the mailing list for quite some time, but there were quite a few open issues left, so as of now it does not appear as if JSR-310 is going to be included in JDK7.

So for now, if you are in need of a powerful date/time library, there is nothing speaking against Joda Time - even though it will not become "a standard", there will most certainly be no better alternative included in JDK7.

like image 34
Daniel Schneller Avatar answered Sep 21 '22 23:09

Daniel Schneller


JSR-310 will not be included in JDK 7.

Stephen Colebourne Co-spec lead, JSR-310

Update 2014-10-09: JSR-310 was included in Java SE 8.

like image 96
JodaStephen Avatar answered Sep 23 '22 23:09

JodaStephen