开发者

how could i return an Islamic calendar using java.util.Calendar?

I knew that java.util.Calendar class method getInstance() returns a GregorianCalendar but how could i get an Islamic calendar?开发者_运维问答


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.


I think the JDK does not ship with an implementation of the Islamic calendar. You'd have to use another library, such as Joda Time.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜