Should I use threeten instead of joda-time

前端 未结 3 441
Happy的楠姐
Happy的楠姐 2021-01-03 23:25

I came across https://blog.joda.org/2009/11/why-jsr-310-isn-joda-time_4941.html.

1) I am currently migrating Java Calendar to joda-time. I was wondering, should I us

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-03 23:50

    This is just a suggestion what I would do.

    Since Joda-time is heavily tested by lots of users and they still recommend it, that means it's a good library. JSR-310 -- I haven't seen this before this post of yours. Also, I am not sure how many people are using it -- or if it's completely bug free. May be it solves the Joda-time issues mentioned in the link that you have posted, but what guarantees that it is not having a newer bug.

    That said, I will wait for JSR-310 to mature and be popular. And probably use in some of the non-critical projects. And, probably, eventually accept it as the blogger says, "(JSR-310 is) an API 'inspired by Joda-Time'" . In the mean time, I will use Joda-time.

    Looking around the stuffs regarding it, I found this: http://sourceforge.net/apps/mediawiki/threeten/index.php?title=ThreeTen

    It quotes:

    The ThreeTen project is still in Alpha so methods may appear and disappear at any point. (Status - December 2010)

    I WOULD RECOMMEND TO NOT TO USE IT RIGHT AWAY

提交回复
热议问题