java.time.format.DateTimeFormatter .
Formatters will be created using the defined pattern,
ISO, and xxxStyle methods (considered in that order).
createDateTimeFormatter(), createDateTimeFormatter(DateTimeFormatter), setPattern, setIso, setDateStyle, setTimeStyle, setDateTimeStyle, DateTimeFormatterFactoryBean
| Modifier and Type | Field and Description |
|---|---|
| private FormatStyle | |
| private DateTimeFormat. | |
| private String | |
| private FormatStyle | |
| private TimeZone |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DateTimeFormatterFactory(String
the pattern to use to format date values pattern)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| private FormatStyle | |
| public DateTimeFormatter | Returns: a new date time formatterCreate a new |
| public DateTimeFormatter | Returns: a new date time formatterthe fall-back formatter to use
when no specific factory properties have been set fallbackFormatter)Create a new |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setStylePattern(String
two characters from the set {"S", "M", "L", "F", "-"} style)Set the two characters to use to format date values, in Joda-Time style. |
| public void | |
| public void | setTimeZone(TimeZone
the time zone timeZone)Set the |
| dateStyle | back to summary |
|---|---|
| private FormatStyle dateStyle
| |
| iso | back to summary |
|---|---|
| private DateTimeFormat. | |
| pattern | back to summary |
|---|---|
| private String pattern
| |
| timeStyle | back to summary |
|---|---|
| private FormatStyle timeStyle
| |
| timeZone | back to summary |
|---|---|
| private TimeZone timeZone
| |
| DateTimeFormatterFactory | back to summary |
|---|---|
| public DateTimeFormatterFactory() Create a new | |
| DateTimeFormatterFactory | back to summary |
|---|---|
| public DateTimeFormatterFactory(String pattern) Create a new
| |
| convertStyleCharacter | back to summary |
|---|---|
private FormatStyle convertStyleCharacter(char c)
| |
| createDateTimeFormatter | back to summary |
|---|---|
| public DateTimeFormatter createDateTimeFormatter() Create a new If no specific pattern or style has been defined,
| |
| createDateTimeFormatter | back to summary |
|---|---|
| public DateTimeFormatter createDateTimeFormatter(DateTimeFormatter fallbackFormatter) Create a new If no specific pattern or style has been defined,
the supplied
| |
| setDateStyle | back to summary |
|---|---|
| public void setDateStyle(FormatStyle dateStyle) Set the style to use for date types. | |
| setDateTimeStyle | back to summary |
|---|---|
| public void setDateTimeStyle(FormatStyle dateTimeStyle) Set the style to use for date and time types. | |
| setIso | back to summary |
|---|---|
| public void setIso(DateTimeFormat. Set the ISO format used to format date values.
| |
| setPattern | back to summary |
|---|---|
| public void setPattern(String pattern) Set the pattern to use to format date values.
| |
| setStylePattern | back to summary |
|---|---|
| public void setStylePattern(String style) Set the two characters to use to format date values, in Joda-Time style. The first character is used for the date style; the second is for the time style. Supported characters are:
This method mimics the styles supported by Joda-Time. Note that
JSR-310 natively favors
| |
| setTimeStyle | back to summary |
|---|---|
| public void setTimeStyle(FormatStyle timeStyle) Set the style to use for time types. | |
| setTimeZone | back to summary |
|---|---|
| public void setTimeZone(TimeZone timeZone) Set the
| |