Comparing ThreeTen backport to JSR-310

后端 未结 1 1243
被撕碎了的回忆
被撕碎了的回忆 2021-02-15 11:00

For some reasons, we can\'t use java 8 right now - we\'re still stuck at java 7.
However, I\'d like to use the new JSR-310 date/time APIs right now, using the

相关标签:
1条回答
  • 2021-02-15 11:58

    See this blog post.

    ThreeTen-Backport is a solid backport consisting of equivalent code for the main API (though not so good for non-ISO calendar systems). To convert to Java 8 java.time requires changing the package name, and altering some constants to be method references.

    I would not advise migrating from Joda-Time to ThreeTen-Backport, but do advise migrating from Joda-Time to Java 8 java.time.

    0 讨论(0)
提交回复
热议问题