Subclasses of java.util.Calendar available for commercial use - i.e. IslamicCalendar(java.util.Calendar 的子类可用于商业用途 - 即伊斯兰日历)
问题描述
我正在寻找 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 的子类可用于商业用途 - 即伊斯兰日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:java.util.Calendar 的子类可用于商业用途 - 即伊斯兰


基础教程推荐
- 在 Java 中创建日期的正确方法是什么? 2022-01-01
- 多个组件的复杂布局 2022-01-01
- 不推荐使用 Api 注释的描述 2022-01-01
- 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01
- Java 实例变量在两个语句中声明和初始化 2022-01-01
- Java Swing计时器未清除 2022-01-01
- 验证是否调用了所有 getter 方法 2022-01-01
- 大摇大摆的枚举 2022-01-01
- 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01
- 从 python 访问 JVM 2022-01-01