java.lang.Object | ||
↳ | java.util.Date | |
↳ | com.google.gwt.i18n.client.impl.DateRecord |
Implementation detail of DateTimeFormat -- not a public API and subject to change. DateRecord class exposes almost the same set of interface as Date class with only a few exceptions. The main purpose is the record all the information during parsing phase and resolve them in a later time when all information can be processed together.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | AM | ||||||||||
int | PM |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Initialize DateExt object with default value.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
calcDate uses all the field available so far to fill a Date object.
| |||||||||||
Set ambiguous year field.
| |||||||||||
Set morning/afternoon field.
| |||||||||||
Set dayOfMonth field.
| |||||||||||
Set dayOfWeek field.
| |||||||||||
Set Era field.
| |||||||||||
Set hour field.
| |||||||||||
Set milliseconds field.
| |||||||||||
Set minute field.
| |||||||||||
Set month field.
| |||||||||||
Set seconds field.
| |||||||||||
Set timezone offset, in minutes.
| |||||||||||
Set year field.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.Date
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
|
Initialize DateExt object with default value. Here we use -1 for most of the field to indicate that field is not set.
calcDate uses all the field available so far to fill a Date object. For those information that is not provided, the existing value in 'date' will be kept. Ambiguous year will be resolved after the date/time values are resolved. If the strict option is set to true, calcDate will calculate certain invalid dates by wrapping around as needed. For example, February 30 will wrap to March 2.
date | The Date object being filled. Its value should be set to an acceptable default before pass in to this method |
---|---|
strict | true to be strict when parsing |
Set ambiguous year field. This flag indicates that a 2 digit years's century need to be determined by its date/time value. This can only be resolved after its date/time is known.
ambiguousYear | true if it is ambiguous year. |
---|
Set morning/afternoon field.
ampm | ampm value. |
---|
Set dayOfMonth field.
day | dayOfMonth value |
---|
Set dayOfWeek field.
dayOfWeek | day of the week. |
---|
Set Era field.
era | era value being set. |
---|
Set hour field.
hours | hour value. |
---|
Set milliseconds field.
milliseconds | milliseconds value. |
---|
Set minute field.
minutes | minute value. |
---|
Set month field.
month | month value. |
---|
Set seconds field.
seconds | second value. |
---|
Set timezone offset, in minutes.
tzOffset | timezone offset. |
---|
Set year field.
value | year value. |
---|