我正在寻找 Java 日历类的一些子类,最好是回历(伊斯兰)日历实现,但可能需要更多.有人知道可用于商业用途的库吗?
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 次 Calendar 的使用,所以我最好坚持使用该类.有什么建议吗?
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 Date 类保持警惕,他们产生了当前的 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 的子类可用于商业用途 - 即伊斯兰日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!