java.util.Calendar 的子类可用于商业用途 - 即伊斯兰日历

Subclasses of java.util.Calendar available for commercial use - i.e. IslamicCalendar(java.util.Calendar 的子类可用于商业用途 - 即伊斯兰日历)
本文介绍了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 而是编写了自己的类,该类也依赖于自定义类;UDateULocale.我正在尝试 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 的子类可用于商业用途 - 即伊斯兰日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)