If before Java 8 releases, definitely I will choose nscala-time for my scala play project.
However since Java 8 releases, recommending using Java 8 data and time instead of joda time for Java project.
So how about for Scala project? Should we stick using nscala-time or switch? If using Java 8 date and time, need to use mutable.
Also, which library has good support for play json library?
Java 8 time library (
java.time
) types are immutable; Joda Time actually has some mutable classes for specific use-cases. There is also a Scala wrapper forjava.time
which can be used together with a backport ofjava.time
for Java 7. I have no experience with Play JSON, but according to the mailing list,so it seems using nscala-time (or Joda directly) makes more sense for now, especially if you use other parts of Play, not just JSON.