java.lang.Object | |
↳ | org.joda.time.DateTimeFieldType |
Identifies a field, such as year or minuteOfHour, in a chronology-neutral way.
A field type defines the type of the field, such as hourOfDay.
If does not directly enable any calculations, however it does provide a
getField(Chronology)
method that returns the actual calculation engine
for a particular chronology.
It also provides access to the related DurationFieldType
s.
Instances of DateTimeFieldType
are singletons.
They can be compared using ==
.
If required, you can create your own field, for example a quarterOfYear.
You must create a subclass of DateTimeFieldType
that defines the field type.
This class returns the actual calculation engine from getField(Chronology)
.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the century of era field type.
| |||||||||||
Get the hour of day (offset to 1-24) field type.
| |||||||||||
Get the hour of am/pm (offset to 1-12) field type.
| |||||||||||
Get the day of month field type.
| |||||||||||
Get the day of week field type.
| |||||||||||
Get the day of year field type.
| |||||||||||
Get the era field type.
| |||||||||||
Get the duration unit of the field.
| |||||||||||
Gets a suitable field for this type from the given Chronology.
| |||||||||||
Get the name of the field.
| |||||||||||
Get the duration range of the field.
| |||||||||||
Get the AM(0) PM(1) field type.
| |||||||||||
Get the hour of day (0-23) field type.
| |||||||||||
Get the hour of am/pm (0-11) field type.
| |||||||||||
Checks whether this field supported in the given Chronology.
| |||||||||||
Get the millis of day field type.
| |||||||||||
Get the millis of second field type.
| |||||||||||
Get the minute of day field type.
| |||||||||||
Get the minute of hour field type.
| |||||||||||
Get the month of year field type.
| |||||||||||
Get the second of day field type.
| |||||||||||
Get the second of minute field type.
| |||||||||||
Get a suitable debug string.
| |||||||||||
Get the week of a week based year field type.
| |||||||||||
Get the year of a week based year field type.
| |||||||||||
Get the year of a week based year within a century field type.
| |||||||||||
Get the year field type.
| |||||||||||
Get the year of century field type.
| |||||||||||
Get the year of era field type.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Get the century of era field type.
Get the hour of day (offset to 1-24) field type.
Get the hour of am/pm (offset to 1-12) field type.
Get the day of month field type.
Get the day of week field type.
Get the day of year field type.
Get the era field type.
Get the duration unit of the field.
Gets a suitable field for this type from the given Chronology.
chronology | the chronology to use, null means ISOChronology in default zone |
---|
Get the name of the field.
By convention, names follow a pattern of "dddOfRrr", where "ddd" represents the (singular) duration unit field name and "Rrr" represents the (singular) duration range field name. If the range field is not applicable, then the name of the field is simply the (singular) duration field name.
Get the duration range of the field.
Get the AM(0) PM(1) field type.
Get the hour of day (0-23) field type.
Get the hour of am/pm (0-11) field type.
Checks whether this field supported in the given Chronology.
chronology | the chronology to use, null means ISOChronology in default zone |
---|
Get the millis of day field type.
Get the millis of second field type.
Get the minute of day field type.
Get the minute of hour field type.
Get the month of year field type.
Get the second of day field type.
Get the second of minute field type.
Get the week of a week based year field type.
Get the year of a week based year field type.
Get the year of a week based year within a century field type.
Get the year field type.
Get the year of century field type.
Get the year of era field type.