Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我发现在 java 中通过 joda time 将公历转换为回历,但我想使用 joda-time 将特定的回历日期转换为公历。
如果有任何方法可以帮助。
这有效:
Chronology iso = ISOChronology.getInstanceUTC(); Chronology hijri = IslamicChronology.getInstanceUTC(); DateTime dtHijri = new DateTime(1436,02,02,22,22,hijri); DateTime dtIso = new DateTime(dtHijri, iso);