Appends all the elements of a formatter to the builder.
Appends the chronology ID, such as 'ISO' or 'ThaiBuddhist', to the formatter.
Appends the chronology name to the formatter.
Appends the fractional value of a date-time field to the formatter.
Appends the generic time-zone name, such as 'Pacific Time', to the formatter.
Appends an instant using ISO-8601 to the formatter, formatting fractional digits in groups of three.
Optional
fractionalDigits: numberGives control over the number of fraction digits.
Appends a localized date-time pattern to the formatter.
Appends the localized zone offset, such as 'GMT+01:00', to the formatter.
Appends the zone offset, such as '+01:00', to the formatter.
Appends the zone offset, such as '+01:00', to the formatter.
Appends a formatter to the builder which will optionally format/parse.
Appends the elements defined by the specified pattern to the builder.
Appends the text of a date-time field to the formatter using the full text style.
Appends the text of a date-time field to the formatter.
Optional
textStyle: TextStyleAppends the text of a date-time field to the formatter using the specified map to supply the text.
Appends the value of a date-time field to the formatter using a normal output style.
Optional
width: numberApplies a fixed width, zero-padded approach.
Appends the reduced value of a date-time field to the formatter.
Appends the reduced value of a date-time field to the formatter.
Appends the time-zone ID, such as 'Europe/Paris' or '+02:00', to the formatter.
Appends the time-zone ID, such as 'Europe/Paris' or '+02:00', to the formatter, using the best available zone ID.
Appends the time-zone region ID, such as 'Europe/Paris', to the formatter, rejecting the zone ID if it is a ZoneOffset.
Appends the time-zone name, such as 'British Summer Time', to the formatter.
Ends an optional section.
Mark the start of an optional section.
Causes the next added printer/parser to pad to a fixed width.
Optional
padChar: stringIf left out, width defaults to a space.
Changes the parse style to be case insensitive for the remainder of the formatter.
Changes the parse style to be case sensitive for the remainder of the formatter.
Appends a default value for a field to the formatter for use in parsing.
Changes the parse style to be lenient for the remainder of the formatter.
Changes the parse style to be strict for the remainder of the formatter.
Completes this builder by creating the DateTimeFormatter using the default locale.
Builder to create date-time formatters.
See java.time.format.DateTimeFormatterBuilder for full documentation