YUI-calendar and Joda time based date picker (wicket-datetime)
基于YUI-calendar和Joda time的datepicker(wicket-datetime)
Each entrydata element can have one of the following elements: text, number, datetime, and numberlist.
每个entrydata元素可以包含以下几个元素中的一个:text、number、datetime和numberlist。
NOTE: There are also some types based on the datetime format, but we cover only simple string types in this article.
注意:还有一些类型基于datetime格式,但是本文仅讨论简单的字符串类型。
In turn, each item element can have one of the following elements: text, number, datetime, numberlist, and textlist.
每个item元素各自又可以包含以下元素中的一个:text、number、datetime、numberlist和textlist。
The argument [datetime], if specified, is used as the basis for the replica ID; otherwise the replica ID is based on the current date/time.
若指定了 [datetime]参数,则将其用作副本ID的基础,若未指定则以当前日期或时间作为副本 ID 的基础。
The datetime module provides time objects that are similar to the time objects in this chapter, but they provide a rich set of methods and operators.
datetime模块提供了一些time对象,和本章的time对象很相似,但前者提供了更多的方法和运算符。
IDS now supports the following new built-in SQL functions to perform common mathematical, casting, and bitmap operations, and for manipulating character string, date, and datetime values
IDS现在支持一些新的内置SQL函数,这些函数有的执行常见的数学、类型转换和位图操作,有的操纵字符串、日期和日期时间值
DateTime: This is the class you should use most often.
DateTime:这是最常用的一个类。
Datetime contains useful date and time manipulation functions.
datetime包含有用的日期和时间处理函数。
Table 3 displays the DateTime format for a different language.
表3显示了不同语言的datetime格式。
This code USES individual field values to construct a DateTime object.
下面的代码使用一些字段值构建了一个DateTime对象。
The element contains the DATETIME value (in RFC 3339 format) from the POSTED column.
元素包含posted列的datetime值(RFC 3339格式)。
Support for custom editors for date, dateTime, time datatypes, and other types such as color
支持针对日期、日期时间、时间数据类型以及其他类型(比如说颜色)对编辑器进行定制
As for data formatting, such as Currency, Numbers, and DateTime, you must also implement these programs.
对于数据格式化,例如Currency、Numbers和DateTime,您也需要实现这些程序。
Next, we will display the DateTime format in the same language and different time zone, as Listing 11 shows.
接下来,我们将使用同一语言,显示不同时区的datetime格式,如清单11所示。
Finally, the posted column is a DATETIME column that stores the date that the article was posted on the Web site.
最后,posted列是一个datetime列,存储了文章发布到网站的日期。
Joda supports a number of other objects as the constructor parameter for creating a DateTime, as shown in Listing 5.
Joda支持使用许多其他对象作为构造函数的参数,用于创建DateTime,如清单5所示。
When a timezone value is added to a Universal Coordinated Time (UTC) dateTime, it results in a date and time in that timezone.
当将一个时区值添加到通用协调时间(Universal Coordinated Time,UTC)dateTime 时,将会生成该时区中的日期和时间。
The Format date function is a useful function to convert a given dateTime according to a specified pattern as shown in Table 4.
Formatdate函数非常有用,可以根据指定的模式转换给定的dateTime,如表4 所示。
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对象的方式,该对象表示时间上的某个特定的瞬间。
It is basically just like DateTime, except that the time portion is always at midnight in the particular DateTimeZone associated with the object.
它基本上类似于DateTime,不同之处在于时间部分总是为与该对象关联的特定DateTimeZone时区的午夜时分。
A DateTime is always associated with a DateTimeZone, which - if you don't specify it - defaults to the time zone of the machine the code is running on.
DateTime始终与DateTimeZone相关,如果您不指定它的话,它将被默认设置为运行代码的机器所在的时区。
The XML Schema (see Resources) defines dateTime as a primitive type, which should be formatted according to the ISO 8601 standard, for example "2004-12-01T00:00:00".
XMLSchema(请参阅参考资料)将 dateTime 定义成一种基本类型,按照ISO 8601标准格式化,比如“2004-12-01T00:00:00”。
Listing 3 shows an implementation of a simple allocator that converts the text content of Atom feed elements "published" and "updated" into a DateTime event (an extension of the Characters event).
清单3显示了一个简单分配器的实现,它将Atom提要元素“published”和“updated”的文本内容转换为一个DateTime事件(Characters事件的扩展)。
Listing 3 shows an implementation of a simple allocator that converts the text content of Atom feed elements "published" and "updated" into a DateTime event (an extension of the Characters event).
清单3显示了一个简单分配器的实现,它将Atom提要元素“published”和“updated”的文本内容转换为一个DateTime事件(Characters事件的扩展)。
应用推荐