This is a very cool feature of Joda.
这是Joda的一个非常棒的特性。
Using Joda, the code looks like Listing 2.
使用Joda,代码如清单2所示。
I'll discuss each of them in turn with respect to Joda.
我将针对Joda依次讨论每一个概念。
YUI-calendar and Joda time based date picker (wicket-datetime)
基于YUI-calendar和Joda time的datepicker(wicket-datetime)
Here are some other calculations that are super easy to do using joda.
下面是其他一些因为使用Joda而变得超级简单的计算。
Joda-Time has spawned some related projects that you might find helpful.
Joda - Time衍生了一些相关的项目,您可能会发现这些项目很有用。
Joda classes that represent immutable instants in time are subclasses of this one.
表示时间上的不可变瞬间的joda类都属于这个类的子类。
The framework USES Joda time API for handling the date time manipulation logic.
该框架使用了Joda TimeAPI来处理日期时间操作逻辑。
Joda-Time makes time and date values easy to manage, manipulate, and understand.
Joda - Time令时间和日期值变得易于管理、操作和理解。
This article introduces Joda and shows you how to use it. I'll cover the following topics.
本文将介绍并展示如何使用它。
Firstly, null was accepted by a number of the Joda time APIs to refer to 0 time or duration.
首先,很多Joda TimeAPI都接受null值来表示0时间或是间隔。
The Joda classes I discuss in this article are immutable, so instances of them cannot be modified.
我在本文讨论的Joda类具有不可变性,因此它们的实例无法被修改。
But thanks to Joda, I can do any necessary date arithmetic and then convert back to JDK classes.
但是幸亏有Joda,我可以执行任何必要的日期算法,然后再转换回JD k类。
The designers of Joda also made a decision that I believe is the key to its success: JDK interoperability.
Joda的设计者还做出了一个决定,我认为这是它取得成功的构建:jdk互操作性。
Abduredha Joda stood on a dry plot of land where he lives with his family on the outskirts of Karbala.
AbduredhaJoda站在卡尔巴拉郊区一片干旱的土地上,他和家人曾经在此居住。
Next you looked at some Joda concepts, and then how to use Joda to do date calculations and formatting.
然后介绍了一些Joda概念,以及如何使用Joda执行日期计算和格式化。
Play with the sample application to see for yourself how much fun calculating any date can be with Joda.
尝试操作一下样例应用程序,亲自体验一下使用Joda 计算任何日期是多么有趣。
For instance, we have a special printer for joda-time dates and we also read them back in a special way.
例如,我们有一个针对joda - time日期的特殊printer,那么我们也将以一种特殊的方式将他们读回。
If you are looking for an easy-to-use replacement for JDK date processing, then you really should consider Joda.
如果您正在寻找一种易于使用的方式替代JD K日期处理,那么您真的应该考虑Joda。
Joda supports a number of other objects as the constructor parameter for creating a DateTime, as shown in Listing 5.
Joda支持使用许多其他对象作为构造函数的参数,用于创建DateTime,如清单5所示。
Every Joda class has a constructor, similar to this one, where you specify all of the fields that the Joda class can hold.
每一个joda类都有一个与此类似的构造函数,您在此构造函数中指定joda类可以包含的所有字段。
As you can see, Joda gives you precise control over how to create a DateTime object that represents a particular instant in time.
正如您所见,Joda可以使您精确地控制创建DateTime对象的方式,该对象表示时间上的某个特定的瞬间。
Joda-Time 1.6 supports eight chronologies, each of which serves as the calculation engine for that particular calendar system.
Joda - Time 1.6支持8种年表,每一种都可以作为特定日历系统的计算引擎。
The joda-time-jpox project aims to add mappings necessary to persist Joda-Time objects using the DataNucleus persistence engine.
joda-time-jpox项目的目标就是添加一些必需的映射,以使用DataNucleus持久化引擎持久化 Joda-Time对象。
Now that you've seen how to create a few of the more useful Joda classes, I'll show you how to use them to perform date calculations.
现在,您已经了解了如何创建一些非常有用的joda类,我将向您展示如何使用它们执行日期计算。
Mr. Joda, a native of Basra, came to Karbala in 2004 to fish and raise water buffaloes in the lush wetlands that reminded him of his home.
Joda先生来自巴士拉,2004年来到卡尔巴拉这片葱郁的湿地打渔养水牛,这让他想起家乡。
Now I'll introduce you to some of the Joda classes that you will commonly use if you adopt the library and show how to create instances of them.
现在,我将展示在采用该库时会经常遇到的一些joda类,并展示如何创建这些类的实例。
It was at such a moment a few years ago when I first realized the power of Joda-Time. Using Joda, the code for the calculation looks like Listing 3.
正是多年前的这样一个时刻,我第一次领略到Joda - Time的强大。
Many date and time calculations can be done without regard to time zone, but it's still important to understand how DateTimeZone affects what Joda is doing.
许多日期和时间计算都可以在不涉及时区的情况下完成,但是仍然需要了解DateTimeZone如何影响Joda 的操作。
The API methods I'll show you for doing date calculations all return a new instance of the corresponding Joda class, leaving the original instance unchanged.
我将向您展示的用于处理日期计算的API方法全部返回一个对应joda类的新实例,同时保持原始实例不变。
应用推荐