Java – factory setting jodatime – where can I find the specific historical conversion date / time?

I use the joda time package to calculate the duration between two historical instances in Android applications / activities These two examples may occur in 19th century Russia (Julian calendar system - before Russia adopted Gregorian calendar system) and 20th century Western European historical system (Gregorian calendar)

The inconvenience is that I now have to choose Julian or Gregorian year representatives based on my knowledge of the actual conversion date in a particular country These individual conversion dates can be found in Wikipedia or literature

In my opinion, there are three solutions to my problem:

1) View all conversion dates for all countries in the literature Then manually enter the specific switching date / time of each time zone And use gjchronology Factory settings in getInstance (zone, factorysettingcutoverdatetimemillis, 4), where factorysettingcutoverdatetimemillis is a long, which contains the millisecond value of a specific instance when switching between Julian and Gregorian calendars in a specific datetimezone

2) Determine where specific conversion dates will end up in jodatime (or other accessible in Android), and then use them

3) Use dafault gjchronology GetInstance (zone, null, 4) specifies the default date of October 1582 (correct for many countries, but not all)

Solution 1) is possible, but it requires some manual labor Solution 2 is the best, and solution 3) is that I now use the default value in gjchronology or select Julian or Gregorian if I know the specific calendar system used at that time

I want help to get solution 2) or get help to guide me online to compile the switching date / time list of the best compilation to save work and implement solution 1) Thanks for your help.

Solution

I don't believe joda time has this information in it - of course I haven't encountered it There is no concept of "country" in joda time, and the conversion is not necessarily related to time zone I believe this row except solution 2

I don't know any official source of this information - I don't believe it in Unicode cldr, for example... But is this page useful to you? I don't know the reliability of its integrity, but I think this is a start:)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>