Package | Description |
---|---|
javax.time.calendar.format |
Provides classes to format dates and times as strings.
|
Modifier and Type | Method and Description |
---|---|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.append(DateTimeFormatter formatter)
Appends all the elements of a formatter to the builder.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.append(DateTimePrinter printer,
DateTimeParser parser)
Appends a printer and/or parser to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendFraction(DateTimeFieldRule<?> rule,
int minWidth,
int maxWidth)
Appends the fractional value of a date-time field to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendLiteral(char literal)
Appends a character literal to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendLiteral(String literal)
Appends a string literal to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendLocalized(DateTimeFormatterBuilder.FormatStyle dateStyle,
DateTimeFormatterBuilder.FormatStyle timeStyle)
Appends a localized date-time pattern to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendLocalized(DateTimeFormatterBuilder.FormatStyle dateStyle,
DateTimeFormatterBuilder.FormatStyle timeStyle,
Chronology chronology)
Appends a localized date-time pattern to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendOffset(String utcText,
boolean includeColon,
boolean allowSeconds)
Appends the zone offset, such as '+01:00', to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendOffsetId()
Appends the zone offset, such as '+01:00', to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendOptional(DateTimeFormatter formatter)
Appends a formatter to the builder which will optionally print/parse.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendPattern(String pattern)
Appends the elements defined by the specified pattern to the builder.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendText(DateTimeFieldRule<?> rule)
Appends the text of a date-time field to the formatter using the full
text style.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendText(DateTimeFieldRule<?> rule,
DateTimeFormatterBuilder.TextStyle textStyle)
Appends the text of a date-time field to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendValue(DateTimeFieldRule<?> rule)
Appends the value of a date-time field to the formatter using a normal
output style.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendValue(DateTimeFieldRule<?> rule,
int width)
Appends the value of a date-time field to the formatter using a fixed
width, zero-padded approach.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendValue(DateTimeFieldRule<?> rule,
int minWidth,
int maxWidth,
DateTimeFormatterBuilder.SignStyle signStyle)
Appends the value of a date-time field to the formatter providing full
control over printing.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendValueReduced(DateTimeFieldRule<?> rule,
int width,
int baseValue)
Appends the reduced value of a date-time field to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendZoneId()
Appends the time-zone rule id, such as 'Europe/Paris', to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendZoneText(DateTimeFormatterBuilder.TextStyle textStyle)
Appends the time-zone rule name, such as 'British Summer Time', to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.optionalEnd()
Ends an optional section.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.optionalStart()
Mark the start of an optional section.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.padNext(int padWidth)
Causes the next added printer/parser to pad to a fixed width using a space.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.padNext(int padWidth,
char padChar)
Causes the next added printer/parser to pad to a fixed width.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.parseCaseInsensitive()
Changes the parse style to be case insensitive for the remainder of the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.parseCaseSensitive()
Changes the parse style to be case sensitive for the remainder of the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.parseLenient()
Changes the parse style to be lenient for the remainder of the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.parseStrict()
Changes the parse style to be strict for the remainder of the formatter.
|
Copyright © 2014. All rights reserved.