Defines constants that are used as attribute keys in the AttributedCharacterIterator returned from DateFormat.formatToCharacterIterator and as field identifiers in FieldPosition.
The class also provides two methods to map between its constants and the corresponding Calendar constants.
Defines constants that are used as attribute keys in the AttributedCharacterIterator returned from DateFormat.formatToCharacterIterator and as field identifiers in FieldPosition. The class also provides two methods to map between its constants and the corresponding Calendar constants.
Static Constant.
Constant identifying the time of day indicator (e.g. "a.m." or "p.m.") field.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the time of day indicator (e.g. "a.m." or "p.m.") field. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the day of month field.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the day of month field. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the day of week field.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the day of week field. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the day of week field.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the day of week field. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the day of year field.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the day of year field. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the era field.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the era field. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the hour field, where the legal values are 0 to 11.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the hour field, where the legal values are 0 to 11. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the hour field, where the legal values are 1 to 12.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the hour field, where the legal values are 1 to 12. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the hour of day field, where the legal values are 0 to 23.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the hour of day field, where the legal values are 0 to 23. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the hour of day field, where the legal values are 1 to 24.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the hour of day field, where the legal values are 1 to 24. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the millisecond field.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the millisecond field. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the minute field.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the minute field. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the month field.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the month field. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the second field.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the second field. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the time zone field.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the time zone field. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the week of month field.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the week of month field. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the week of year field.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the week of year field. type: java.text.DateFormat$Field
Static Constant.
Constant identifying the year field.
type: java.text.DateFormat$Field
Static Constant. Constant identifying the year field. type: java.text.DateFormat$Field
(*of-calendar-field calendar-field)
Returns the Field constant that corresponds to the Calendar constant calendarField. If there is no direct mapping between the Calendar constant and a Field, null is returned.
calendar-field - Calendar field constant - int
returns: Field instance representing calendarField. - java.text.DateFormat$Field
throws: java.lang.IllegalArgumentException - if calendarField is not the value of a Calendar field constant.
Returns the Field constant that corresponds to the Calendar constant calendarField. If there is no direct mapping between the Calendar constant and a Field, null is returned. calendar-field - Calendar field constant - `int` returns: Field instance representing calendarField. - `java.text.DateFormat$Field` throws: java.lang.IllegalArgumentException - if calendarField is not the value of a Calendar field constant.
(get-calendar-field this)
Returns the Calendar field associated with this attribute. For example, if this represents the hours field of a Calendar, this would return Calendar.HOUR. If there is no corresponding Calendar constant, this will return -1.
returns: Calendar constant for this field - int
Returns the Calendar field associated with this attribute. For example, if this represents the hours field of a Calendar, this would return Calendar.HOUR. If there is no corresponding Calendar constant, this will return -1. returns: Calendar constant for this field - `int`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close