Options
All
  • Public
  • Public/Protected
  • All
Menu

A CustomFormatter implementation that replaces Custom Date and Time Format Specifiers with their culture information values.

Hierarchy

Implements

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

  • Creates an instance that uses the resolved options from the specified options provider and applies culture-specific formatting based on the given format info.

    Parameters

    • formatInfo: DateTimeFormatInfo

      An instance that provides culture-specific date and time format information.

    • formatProvider: function

      A function that returns a localized instance of Intl.DateTimeFormat with the supplied options.

        • (resolvedOptions: DateTimeFormatOptions): DateTimeFormat
        • Parameters

          • resolvedOptions: DateTimeFormatOptions

          Returns DateTimeFormat

    Returns IntlSpecifiersFormatter

Properties

Private formatProvider

formatProvider: function

Type declaration

    • (resolvedOptions: DateTimeFormatOptions): DateTimeFormat
    • Parameters

      • resolvedOptions: DateTimeFormatOptions

      Returns DateTimeFormat

Protected value

value: Date

Methods

format

  • format(format: string, value: Date): string

Private overrideBaseFormatters

  • overrideBaseFormatters(): void

Object literals

Protected formatters

formatters: object

amPmPlaceholder

  • amPmPlaceholder(specifierCount: number): Object

dateSeparator

  • dateSeparator(): Object

dayPlaceholder

  • dayPlaceholder(specifierCount: number): Object

digitSubSecondPlaceholder

  • digitSubSecondPlaceholder(specifierCount: number): Object

eraPlaceholder

  • eraPlaceholder(): Object

escapeChar

  • escapeChar(matchLength: number, specifierMatch: string): Object

hour12Placeholder

  • hour12Placeholder(specifierCount: number): Object

hour24Placeholdr

  • hour24Placeholdr(specifierCount: number): Object

hoursOffsetPlaceholder

  • hoursOffsetPlaceholder(specifierCount: number): Object

literalStringDelimeterDouble

  • literalStringDelimeterDouble(matchLength: number, specifierMatch: string): Object

literalStringDelimeterSingle

  • literalStringDelimeterSingle(matchLength: number, specifierMatch: string): Object

minutePlaceholder

  • minutePlaceholder(specifierCount: number): Object

monthPlaceholder

  • monthPlaceholder(specifierCount: number): Object

secondPlaceholder

  • secondPlaceholder(specifierCount: number): Object

singleCharFormatSpecifier

  • singleCharFormatSpecifier(matchLength: number, specifierMatch: string): Object

timeSeparator

  • timeSeparator(): Object

timeZonePlaceholder

  • timeZonePlaceholder(): Object

yearPlaceholder

  • yearPlaceholder(specifierCount: number): Object

zeroSubSecondPlaceholder

  • zeroSubSecondPlaceholder(specifierCount: number): Object

Generated using TypeDoc