Uses of Class
org.joda.time.DateTimeFieldType
Packages that use DateTimeFieldType
Package
Description
Provides support for dates, times, time zones, durations, intervals, and
partials.
Implementation package providing abstract and base time classes.
Implementation package providing abstract and standard field classes.
Provides printing and parsing support for instants and durations.
-
Uses of DateTimeFieldType in org.joda.time
Methods in org.joda.time that return DateTimeFieldTypeModifier and TypeMethodDescriptionstatic DateTimeFieldType
DateTimeFieldType.centuryOfEra()
Get the century of era field type.static DateTimeFieldType
DateTimeFieldType.clockhourOfDay()
Get the hour of day (offset to 1-24) field type.static DateTimeFieldType
DateTimeFieldType.clockhourOfHalfday()
Get the hour of am/pm (offset to 1-12) field type.static DateTimeFieldType
DateTimeFieldType.dayOfMonth()
Get the day of month field type.static DateTimeFieldType
DateTimeFieldType.dayOfWeek()
Get the day of week field type.static DateTimeFieldType
DateTimeFieldType.dayOfYear()
Get the day of year field type.static DateTimeFieldType
DateTimeFieldType.era()
Get the era field type.IllegalFieldValueException.getDateTimeFieldType()
Returns the DateTimeFieldType whose value was invalid, or null if not applicable.MonthDay.getFieldType
(int index) Gets the field type at the specified index.Partial.getFieldType
(int index) Gets the field type at the specified index.ReadablePartial.getFieldType
(int index) Gets the field type at the specified index.TimeOfDay.getFieldType
(int index) Deprecated.Gets the field type at the specified index.YearMonth.getFieldType
(int index) Gets the field type at the specified index.YearMonthDay.getFieldType
(int index) Deprecated.Gets the field type at the specified index.MonthDay.getFieldTypes()
Gets an array of the field type of each of the fields that this partial supports.Partial.getFieldTypes()
Gets an array of the field type of each of the fields that this partial supports.TimeOfDay.getFieldTypes()
Deprecated.Gets an array of the field type of each of the fields that this partial supports.YearMonth.getFieldTypes()
Gets an array of the field type of each of the fields that this partial supports.YearMonthDay.getFieldTypes()
Deprecated.Gets an array of the field type of each of the fields that this partial supports.DateTimeComparator.getLowerLimit()
Gets the field type that represents the lower limit of comparison.abstract DateTimeFieldType
DateTimeField.getType()
Get the type of the field.DateTimeComparator.getUpperLimit()
Gets the field type that represents the upper limit of comparison.static DateTimeFieldType
DateTimeFieldType.halfdayOfDay()
Get the AM(0) PM(1) field type.static DateTimeFieldType
DateTimeFieldType.hourOfDay()
Get the hour of day (0-23) field type.static DateTimeFieldType
DateTimeFieldType.hourOfHalfday()
Get the hour of am/pm (0-11) field type.static DateTimeFieldType
DateTimeFieldType.millisOfDay()
Get the millis of day field type.static DateTimeFieldType
DateTimeFieldType.millisOfSecond()
Get the millis of second field type.static DateTimeFieldType
DateTimeFieldType.minuteOfDay()
Get the minute of day field type.static DateTimeFieldType
DateTimeFieldType.minuteOfHour()
Get the minute of hour field type.static DateTimeFieldType
DateTimeFieldType.monthOfYear()
Get the month of year field type.static DateTimeFieldType
DateTimeFieldType.secondOfDay()
Get the second of day field type.static DateTimeFieldType
DateTimeFieldType.secondOfMinute()
Get the second of minute field type.static DateTimeFieldType
DateTimeFieldType.weekOfWeekyear()
Get the week of a week based year field type.static DateTimeFieldType
DateTimeFieldType.weekyear()
Get the year of a week based year field type.static DateTimeFieldType
DateTimeFieldType.weekyearOfCentury()
Get the year of a week based year within a century field type.static DateTimeFieldType
DateTimeFieldType.year()
Get the year field type.static DateTimeFieldType
DateTimeFieldType.yearOfCentury()
Get the year of century field type.static DateTimeFieldType
DateTimeFieldType.yearOfEra()
Get the year of era field type.Methods in org.joda.time with parameters of type DateTimeFieldTypeModifier and TypeMethodDescriptionint
LocalDate.get
(DateTimeFieldType fieldType) Get the value of one of the fields of a datetime.int
LocalDateTime.get
(DateTimeFieldType type) Get the value of one of the fields of a datetime.int
LocalTime.get
(DateTimeFieldType fieldType) Get the value of one of the fields of time.int
ReadableInstant.get
(DateTimeFieldType type) Get the value of one of the fields of a datetime.int
ReadablePartial.get
(DateTimeFieldType field) Gets the value of one of the fields.static DateTimeComparator
DateTimeComparator.getInstance
(DateTimeFieldType lowerLimit) Returns a DateTimeComparator with a lower limit only.static DateTimeComparator
DateTimeComparator.getInstance
(DateTimeFieldType lowerLimit, DateTimeFieldType upperLimit) Returns a DateTimeComparator with a lower and upper limit.boolean
LocalDate.isSupported
(DateTimeFieldType type) Checks if the field type specified is supported by this local date and chronology.boolean
LocalDateTime.isSupported
(DateTimeFieldType type) Checks if the field type specified is supported by this local datetime and chronology.boolean
LocalTime.isSupported
(DateTimeFieldType type) Checks if the field type specified is supported by this local time and chronology.boolean
ReadableInstant.isSupported
(DateTimeFieldType field) Checks whether the field type specified is supported by this implementation.boolean
ReadablePartial.isSupported
(DateTimeFieldType field) Checks whether the field type specified is supported by this partial.DateMidnight.property
(DateTimeFieldType type) Deprecated.Gets the property object for the specified type, which contains many useful methods.DateTime.property
(DateTimeFieldType type) Gets the property object for the specified type, which contains many useful methods.LocalDate.property
(DateTimeFieldType fieldType) Gets the property object for the specified type, which contains many useful methods.LocalDateTime.property
(DateTimeFieldType fieldType) Gets the property object for the specified type, which contains many useful methods.LocalTime.property
(DateTimeFieldType fieldType) Gets the property object for the specified type, which contains many useful methods.MonthDay.property
(DateTimeFieldType type) Gets the property object for the specified type, which contains many useful methods.MutableDateTime.property
(DateTimeFieldType type) Gets the property object for the specified type, which contains many useful methods.Partial.property
(DateTimeFieldType type) Gets the property object for the specified type, which contains many useful methods for getting and manipulating the partial.TimeOfDay.property
(DateTimeFieldType type) Deprecated.Gets the property object for the specified type, which contains many useful methods.YearMonth.property
(DateTimeFieldType type) Gets the property object for the specified type, which contains many useful methods.YearMonthDay.property
(DateTimeFieldType type) Deprecated.Gets the property object for the specified type, which contains many useful methods.void
MutableDateTime.set
(DateTimeFieldType type, int value) Sets the value of one of the fields of the instant, such as hourOfDay.void
ReadWritableInstant.set
(DateTimeFieldType type, int value) Sets the value of one of the fields of the instant, such as hourOfDay.Partial.with
(DateTimeFieldType fieldType, int value) Gets a copy of this date with the specified field set to a new value.DateMidnight.withField
(DateTimeFieldType fieldType, int value) Deprecated.Returns a copy of this date with the specified field set to a new value.DateTime.withField
(DateTimeFieldType fieldType, int value) Returns a copy of this datetime with the specified field set to a new value.LocalDate.withField
(DateTimeFieldType fieldType, int value) Returns a copy of this date with the specified field set to a new value.LocalDateTime.withField
(DateTimeFieldType fieldType, int value) Returns a copy of this datetime with the specified field set to a new value.LocalTime.withField
(DateTimeFieldType fieldType, int value) Returns a copy of this time with the specified field set to a new value.MonthDay.withField
(DateTimeFieldType fieldType, int value) Returns a copy of this month-day with the specified field set to a new value.Partial.withField
(DateTimeFieldType fieldType, int value) Gets a copy of this Partial with the specified field set to a new value.TimeOfDay.withField
(DateTimeFieldType fieldType, int value) Deprecated.Returns a copy of this time with the specified field set to a new value.YearMonth.withField
(DateTimeFieldType fieldType, int value) Returns a copy of this year-month with the specified field set to a new value.YearMonthDay.withField
(DateTimeFieldType fieldType, int value) Deprecated.Returns a copy of this date with the specified field set to a new value.Partial.without
(DateTimeFieldType fieldType) Gets a copy of this date with the specified field removed.Constructors in org.joda.time with parameters of type DateTimeFieldTypeModifierConstructorDescriptionprotected
DateTimeComparator
(DateTimeFieldType lowerLimit, DateTimeFieldType upperLimit) Restricted constructor.IllegalFieldValueException
(DateTimeFieldType fieldType, Number value, Number lowerBound, Number upperBound) Constructor.IllegalFieldValueException
(DateTimeFieldType fieldType, Number value, Number lowerBound, Number upperBound, String explain) Constructor.IllegalFieldValueException
(DateTimeFieldType fieldType, Number value, String explain) Constructor.IllegalFieldValueException
(DateTimeFieldType fieldType, String value) Constructor.Partial
(DateTimeFieldType[] types, int[] values) Constructs a Partial with the specified fields and values.Partial
(DateTimeFieldType[] types, int[] values, Chronology chronology) Constructs a Partial with the specified fields and values.Partial
(DateTimeFieldType type, int value) Constructs a Partial with the specified field and value.Partial
(DateTimeFieldType type, int value, Chronology chronology) Constructs a Partial with the specified field and value. -
Uses of DateTimeFieldType in org.joda.time.base
Methods in org.joda.time.base that return DateTimeFieldTypeModifier and TypeMethodDescriptionAbstractPartial.getFieldType
(int index) Gets the field type at the specified index.AbstractPartial.getFieldTypes()
Gets an array of the field types that this partial supports.Methods in org.joda.time.base with parameters of type DateTimeFieldTypeModifier and TypeMethodDescriptionint
AbstractDateTime.get
(DateTimeFieldType type) Get the value of one of the fields of a datetime.int
AbstractInstant.get
(DateTimeFieldType type) Get the value of one of the fields of a datetime using the chronology of the instant.int
AbstractPartial.get
(DateTimeFieldType type) Get the value of one of the fields of a datetime.int
AbstractPartial.indexOf
(DateTimeFieldType type) Gets the index of the specified field, or -1 if the field is unsupported.protected int
AbstractPartial.indexOfSupported
(DateTimeFieldType type) Gets the index of the specified field, throwing an exception if the field is unsupported.boolean
AbstractInstant.isSupported
(DateTimeFieldType type) Checks if the field type specified is supported by this instant and chronology.boolean
AbstractPartial.isSupported
(DateTimeFieldType type) Checks whether the field specified is supported by this partial. -
Uses of DateTimeFieldType in org.joda.time.field
Methods in org.joda.time.field that return DateTimeFieldTypeModifier and TypeMethodDescriptionAbstractPartialFieldProperty.getFieldType()
Gets the field type being used.AbstractReadableInstantFieldProperty.getFieldType()
Gets the field type being used.final DateTimeFieldType
BaseDateTimeField.getType()
DelegatedDateTimeField.getType()
UnsupportedDateTimeField.getType()
Methods in org.joda.time.field with parameters of type DateTimeFieldTypeModifier and TypeMethodDescriptionstatic UnsupportedDateTimeField
UnsupportedDateTimeField.getInstance
(DateTimeFieldType type, DurationField durationField) Gets an instance of UnsupportedDateTimeField for a specific named field.static void
FieldUtils.verifyValueBounds
(DateTimeFieldType fieldType, int value, int lowerBound, int upperBound) Verify that input values are within specified bounds.Constructors in org.joda.time.field with parameters of type DateTimeFieldTypeModifierConstructorDescriptionprotected
Constructor.protected
DecoratedDateTimeField
(DateTimeField field, DateTimeFieldType type) Constructor.DelegatedDateTimeField
(DateTimeField field, DateTimeFieldType type) Constructor.DelegatedDateTimeField
(DateTimeField field, DurationField rangeField, DateTimeFieldType type) Constructor.DividedDateTimeField
(DateTimeField field, DateTimeFieldType type, int divisor) Constructor.DividedDateTimeField
(DateTimeField field, DurationField rangeField, DateTimeFieldType type, int divisor) Constructor.DividedDateTimeField
(RemainderDateTimeField remainderField, DateTimeFieldType type) Construct a DividedDateTimeField that compliments the given RemainderDateTimeField.DividedDateTimeField
(RemainderDateTimeField remainderField, DurationField rangeField, DateTimeFieldType type) Construct a DividedDateTimeField that compliments the given RemainderDateTimeField.ImpreciseDateTimeField
(DateTimeFieldType type, long unitMillis) Constructor.OffsetDateTimeField
(DateTimeField field, DateTimeFieldType type, int offset) Constructor.OffsetDateTimeField
(DateTimeField field, DateTimeFieldType type, int offset, int minValue, int maxValue) Constructor.PreciseDateTimeField
(DateTimeFieldType type, DurationField unit, DurationField range) Constructor.Constructor.RemainderDateTimeField
(DateTimeField field, DateTimeFieldType type, int divisor) Constructor.RemainderDateTimeField
(DateTimeField field, DurationField rangeField, DateTimeFieldType type, int divisor) Constructor.RemainderDateTimeField
(DividedDateTimeField dividedField, DateTimeFieldType type) Construct a RemainderDateTimeField that compliments the given DividedDateTimeField.RemainderDateTimeField
(DividedDateTimeField dividedField, DurationField durationField, DateTimeFieldType type) Construct a RemainderDateTimeField that compliments the given DividedDateTimeField.ZeroIsMaxDateTimeField
(DateTimeField field, DateTimeFieldType type) Constructor. -
Uses of DateTimeFieldType in org.joda.time.format
Methods in org.joda.time.format with parameters of type DateTimeFieldTypeModifier and TypeMethodDescriptionDateTimeFormatterBuilder.appendDecimal
(DateTimeFieldType fieldType, int minDigits, int maxDigits) Instructs the printer to emit a field value as a decimal number, and the parser to expect an unsigned decimal number.DateTimeFormatterBuilder.appendFixedDecimal
(DateTimeFieldType fieldType, int numDigits) Instructs the printer to emit a field value as a fixed-width decimal number (smaller numbers will be left-padded with zeros), and the parser to expect an unsigned decimal number with the same fixed width.DateTimeFormatterBuilder.appendFixedSignedDecimal
(DateTimeFieldType fieldType, int numDigits) Instructs the printer to emit a field value as a fixed-width decimal number (smaller numbers will be left-padded with zeros), and the parser to expect an signed decimal number with the same fixed width.DateTimeFormatterBuilder.appendFraction
(DateTimeFieldType fieldType, int minDigits, int maxDigits) Instructs the printer to emit a remainder of time as a decimal fraction, without decimal point.DateTimeFormatterBuilder.appendShortText
(DateTimeFieldType fieldType) Instructs the printer to emit a field value as short text, and the parser to expect text.DateTimeFormatterBuilder.appendSignedDecimal
(DateTimeFieldType fieldType, int minDigits, int maxDigits) Instructs the printer to emit a field value as a decimal number, and the parser to expect a signed decimal number.DateTimeFormatterBuilder.appendText
(DateTimeFieldType fieldType) Instructs the printer to emit a field value as text, and the parser to expect text.void
DateTimeParserBucket.saveField
(DateTimeFieldType fieldType, int value) Saves a datetime field value.void
DateTimeParserBucket.saveField
(DateTimeFieldType fieldType, String text, Locale locale) Saves a datetime field text value.Method parameters in org.joda.time.format with type arguments of type DateTimeFieldTypeModifier and TypeMethodDescriptionstatic DateTimeFormatter
ISODateTimeFormat.forFields
(Collection<DateTimeFieldType> fields, boolean extended, boolean strictISO) Returns a formatter that outputs only those fields specified.