tag:blogger.com,1999:blog-741750605858169835.post6124739139836477106..comments2024-01-24T14:53:02.919+00:00Comments on Stephen Colebourne's blog: Joda-Time v2.0Stephen Colebournehttp://www.blogger.com/profile/01454237967846880639noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-741750605858169835.post-52796643775600207332017-12-02T09:19:09.227+00:002017-12-02T09:19:09.227+00:00This would be better asked at Stack Overflow. Joda...This would be better asked at Stack Overflow. Joda-Time just takes the last set of rules from tzdb and applies them to all future years. You can update the tzdb version yourself - http://www.joda.org/joda-time/tz_update.htmlStephen Colebournehttps://www.blogger.com/profile/01454237967846880639noreply@blogger.comtag:blogger.com,1999:blog-741750605858169835.post-91304531292989206972017-12-01T18:55:54.146+00:002017-12-01T18:55:54.146+00:00Hi Stephen, I've been searching the internet (...Hi Stephen, I've been searching the internet (stack overflow and git hub mostly) trying to find an answer to a question I have about Joda-Time with no luck. My question is this: what does Joda-Time do in the case when there is no current rule in the tz database for a given date? Does Joda-Time have some default rules it uses? Does it just apply the last possible rule it finds for the given timezone? For example, the version of Joda-Time we are using uses IANA tz db 2012j. The last rules for Africa/Egypt are: Rule Egypt 2010 only - Sep 10 0:00 1:00 S, Rule Egypt 2010 only - Sep lastThu 23:00s 0 - However, now we are in 2017 and there are no rules past 2010. What does Joda-Time do? It seems to me that Joda-Time is applying the last known rules. Is that true? Sorry to bother you, thank you for your time! Anthonyhttps://www.blogger.com/profile/02859236609784949881noreply@blogger.comtag:blogger.com,1999:blog-741750605858169835.post-29775405406508447692012-05-07T13:12:11.895+01:002012-05-07T13:12:11.895+01:00Open Source is sometimes about scratching your own...Open Source is sometimes about scratching your own itch. I've never needed the day of the week as a number, so its never bothered me. Feel free to fork on GitHub and suggest an approach, perhaps as a variation in the formatter.Stephen Colebournehttps://www.blogger.com/profile/01454237967846880639noreply@blogger.comtag:blogger.com,1999:blog-741750605858169835.post-89381422776738118692012-05-05T18:02:00.378+01:002012-05-05T18:02:00.378+01:00Has anything been done to address first day of wee...Has anything been done to address first day of week. Before you give a big sigh, I believe this issue has forced a good number of people to not use Joda time. I see the at least initial intransigence to only use ISO as the rule for setting this value, there are other issues at play. Many businesses do not use Monday as the first day of the week, nor January 1rst as the first day of the year for that matter (financially in many jurisdictions businesses can set any day of the year as the first day of year). I also see this it possible some sort of anti-American sentiment such as, screw them those Americans always want to be different. Yet there are other countries that don't use Monday as the start of the week as well. Canada (although it may be officially, I don't know, in practice Monday is almost never considered the first day of the week and all calendars start on Sunday), Muslim countries, etc. I would like to see first day of week assignable. If you don't do it with Joda, at least do it with 310. Until then I and many others are forced to use the standard Java implementation. This frustrates me because in almost every other regard, Joda is so much better. Regards.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-741750605858169835.post-76020661371979535292011-08-02T08:11:35.000+01:002011-08-02T08:11:35.000+01:00Stephen, thank you very, very, very much for your ...Stephen, thank you very, very, very much for your great work :-)<br /><br />It's a pleasure to work with Joda-Time instead of the, well, strange standard API. I've introduced it to quite a number teams and/or projects in the past few years, and basically everyone was almost instantly convinced of its benefits. So please keep up your good work :-)Miggelnoreply@blogger.comtag:blogger.com,1999:blog-741750605858169835.post-47055142290277194232011-08-01T22:52:53.000+01:002011-08-01T22:52:53.000+01:00The MillisProvider interface that acts as a clock ...The MillisProvider interface that acts as a clock is now public, although it has to be set as a static.Stephen Colebournenoreply@blogger.comtag:blogger.com,1999:blog-741750605858169835.post-91806406921381484632011-08-01T22:12:43.000+01:002011-08-01T22:12:43.000+01:00A quick question: something that I frequently find...A quick question: something that I frequently find useful in my projects is a "Clock" interface that acts as a factory for DateTime (and/or Instant) instances that can be mocked so that known dates can be used in testing scenarios. Is there anything like this in Joda-Time 2.0?<br /><br />Thanks a lot for joda-*!<br /><br />KrisKris Nuttycombenoreply@blogger.com