可用于商业用途的java.util.Calendar的子类 - 即IslamicCalendar [英] Subclasses of java.util.Calendar available for commercial use - i.e. IslamicCalendar

查看:142
本文介绍了可用于商业用途的java.util.Calendar的子类 - 即IslamicCalendar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找 Java 日历类的某些子类,最好是Hijri(伊斯兰)日历实现,但可能需要更多。有没有人知道一个可用于商业用途的库?

I am looking for some subclasses of the Java calendar class, preferably a Hijri (Islamic) calendar implementation, but will potentially require more. Does anyone know of a library that is available for commercial use?

我找到了IBM的ICU库(这里),然而,他们不扩展 java.util.Calendar ,而是写了自己的类,也回复在自定义类; UDate ULocale 。我试图I18n一个现有的Java应用程序已经有400多个日历使用,所以我理想地想坚持那个类。有任何建议吗?

I have found IBM's ICU library (here), however, they do not extend java.util.Calendar and instead have written their own class which also replies on the custom classes; UDate and ULocale. I am attempting to I18n an existing java application which already has over 400 usages of Calendar so I ideally want to stick to that class. Any suggestions?

提前感谢。

推荐答案

像所有Date API问题一样,答案是使用 Joda 如果可能,如果没有,使它成为可能。

As usual with all Date API questions the answer is use Joda if possible, if not, make it possible.

我也警惕IBM日期类,他们产生了当前的Java日期API,虽然它是一个很大的地方,那个实现不适用于其他产品。

I'd also be wary of IBM Date classes, they produced the current Java date API and while it's a big place, that implementation does not bode well for other offerings.

这篇关于可用于商业用途的java.util.Calendar的子类 - 即IslamicCalendar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆