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);
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 from timeStamp
)? I don't need an implementation or an algorithm, cause this issue is too buggy and has a lot of rules, I need a reliable solution
Take a look on this: https://github.com/amirmehdizadeh/JalaliCalendar
The code looks nice, maven based project, a lot of unit tests.