DateTimeFormatterBuilder

Class DateTimeFormatterBuilder

public final class DateTimeFormatterBuilder
extends Object

Builder to create date-time formatters.

This allows a DateTimeFormatter to be created. All date-time formatters are created ultimately using this builder.

The basic elements of date-time can all be added:

  • Value - a numeric value
  • Fraction - a fractional value including the decimal place. Always use this when outputting fractions to ensure that the fraction is parsed correctly
  • Text - the textual equivalent for the value
  • OffsetId/Offset - the zone offset
  • ZoneId - the 登录查看完整内容