Java中的Jalali Calendar的日期转换器 [英] 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.
这篇关于Java中的Jalali Calendar的日期转换器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!