Bluestep JS Documentation
    Preparing search index...

    Class DateTimeFormatterBuilder

    Builder to create date-time formatters.

    See java.time.format.DateTimeFormatterBuilder for full documentation

    Index

    Constructors

    Methods

    • Appends the fractional value of a date-time field to the formatter.

      Parameters

      • field: TemporalField
      • minWidth: number
      • maxWidth: number
      • decimalPoint: boolean

      Returns DateTimeFormatterBuilder

    • Appends an instant using ISO-8601 to the formatter, formatting fractional digits in groups of three.

      Parameters

      • OptionalfractionalDigits: number

        Gives control over the number of fraction digits.

      Returns DateTimeFormatterBuilder

    • Appends the zone offset, such as '+01:00', to the formatter.

      Parameters

      • pattern: string
      • noOffsetText: string

      Returns DateTimeFormatterBuilder

    • Appends the elements defined by the specified pattern to the builder.

      Parameters

      • pattern: string

      Returns DateTimeFormatterBuilder

    • Appends the time-zone ID, such as 'Europe/Paris' or '+02:00', to the formatter, using the best available zone ID.

      Returns DateTimeFormatterBuilder

    • Appends the time-zone region ID, such as 'Europe/Paris', to the formatter, rejecting the zone ID if it is a ZoneOffset.

      Returns DateTimeFormatterBuilder

    • Causes the next added printer/parser to pad to a fixed width.

      Parameters

      • padWidth: number
      • OptionalpadChar: string

        If left out, width defaults to a space.

      Returns DateTimeFormatterBuilder

    • Completes this builder by creating the DateTimeFormatter using the default locale.

      Returns DateTimeFormatter