Reputation: 5959
I knew that java.util.Calendar class method getInstance()
returns a GregorianCalendar but how could i get an Islamic calendar?
Upvotes: 6
Views: 5409
Reputation: 24910
There's not one built in the API.
You're going to have to subclass the Calendar class to do this or you could look at stuff that people have already written and if that will be suitable for you.
IBM has one implementation of the Hijri calendar.
There's also an approximate one provided by Joda-Time.
Upvotes: 10