一个很好的日期转换器Jalali日历在Java? [英] A good date converter for Jalali Calendar in Java?
问题描述
我正在开发一个Java应用程序,我有一个 timeStamp
(在 Long
)。我可以很容易地使用此代码将其更改为格里高利日期:
I'm developing a Java App and I have a timeStamp
(in Long
). I can easily use this code to change it to a Gregorian date:
Calendar calendar=Calendar.getInstance();
calendar.setTimeInMillis(timeStamp);
但我需要在Jalali日历中有日期。我搜索,但没有找到任何好的图书馆。你知道一个可靠的和良好的库转换(或创建日期以Jalali格式frome timeStamp
)。我不需要你的实现或算法,因为这个问题是太多的bug和有很多规则,我需要一个可靠的解决方案
But I need to have the date in Jalali Calendar. I searched but didn't found any good library. Do you know a reliable and good library for converting (or creating dates in Jalali format frome timeStamp
). I don't need your implementation or an algorithm, cause this issue is too buggy and has a lot of rules, I need a reliable solution
谢谢。
推荐答案
请参阅: https:// github .com / amirmehdizadeh / JalaliCalendar
代码看起来不错,基于maven的项目,很多单元测试。
The code looks nice, maven based project, a lot of unit tests.
这篇关于一个很好的日期转换器Jalali日历在Java?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!